Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

single user problem of VB dll in asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Smith - 19 May 2008 14:09 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.