Hello,
We have a VB6 dll that we need to use in our asp.net 2.0 app. We build it as
multiple user.
But at runtime, it does not seem to allow more then two pages using the dll
at the same time.
Is there an issue with this scenario or it could be the code inside the DLL
preventing this from working
properly.
Thanks
J
bruce barker - 19 May 2008 14:46 GMT
vb6 dll's are sta (single apt model) and use thread static storage for
module data. therefore asp.net uses a single thread to accesses the
methods. sta modules should not be used with any high volume site.
be sure to set your pages aspcompat, which will turn off thread agility
or you could get errors calling the sta (due to thread local storage use)
-- bruce (sqlwork.com)
> Hello,
> We have a VB6 dll that we need to use in our asp.net 2.0 app. We build it as
[quoted text clipped - 9 lines]
>
> J
Mark Rae [MVP] - 19 May 2008 14:57 GMT
> Is there an issue with this scenario or it could be the code inside the
> DLL preventing this from working properly.
In addition to Bruce's reply, I would strongly advise you to give serious
consideration to re-writing the DLL in native .NET code...
Mainstream support for VB6 ended over three years ago, and extended support
finally ended last month:
http://support.microsoft.com/lifecycle/search/?sort=PN&alpha=Visual+Basic+6.0&Fi
lter=FilterNO
As far as Microsoft is concerned, that makes VB6 officially obsolete.

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net