473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

single user problem of VB dll in asp.net

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
Jun 27 '08 #1
2 1018

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)

Smith wrote:
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

Jun 27 '08 #2
"Smith" <Sm***@pricateemail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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/lifecyc...ilter=FilterNO

As far as Microsoft is concerned, that makes VB6 officially obsolete.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
5
by: Mark S | last post by:
I have a db maintenance plan which is set to backup (then truncate hopefully) the transaction log. In order to backup a transaction log the db must be in single user mode so the maint. plan fails. ...
7
by: jsale | last post by:
I have made an ASP.NET web application that connects to SQL Server, reading and writing data using classes. I was recommended to use session objects to store the data per user, because each user...
1
by: EricMatz | last post by:
I work for a medium-sized insurance company, developing web-based systems for our independent agents. There are four primary applications we provide - one that serves as an agent portal (ASP), and...
0
by: johnb41 | last post by:
The heart of my application is a database (MS Jet, SQL, etc.). The user needs a connection to this database before he/she can do anything w/ the program. The user will also work with supplimental...
3
by: Solution Seeker | last post by:
I want to Store the String value with Single Quotes in the Field of Database where if i try to Store the String value with Single Quotes (as it is) then it is throwing the error as SQL String...
3
by: Joe Fawcett | last post by:
Dear All We have an application where users login, their name/password details are stored in a table, and now we want to add a third party bulletin board that lives in its own virtual directory....
4
by: vze1r2ht | last post by:
I have many types of classes and I'm deciding whether to use a single class or multiple classes for EACH type of class. For an example: User class has 3 classes associated with it: User...
0
by: Why name | last post by:
Hi, I need to create a Web site for a client.Need help in designing the left menu item. The site has got 3 important parts. User : Who uses the system. Customer : Users are associated with...
3
by: Pouria | last post by:
Hi, Does anyone have any experience with single sign on for .Net windows applications or windows services? So the idea is to be able to use the user credentials from logging into windows to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.