Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 simultaneous calls to a webservice wreaks havoc
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01090751
Message ID:
01090756
Vues:
14
>I have a webservice made up of 2 projects aeService and aeCommon. Within aeCommon I have a class DB that sets and retrieves the DBConnection String.
>
>Main Webservice method accepts an id, a password and an xml file of inventory as parameters and then calls DB.SetDBConn(strRetailerID, strPassword). This main method then starts parsing the xml file and calls functions in the db class to insert records into the appropriate sql database.
>
>Unfortunately, if 2 applications call this webservice at the same time It's like the dbconnection string is overwritten and then the xml starts going to the wrong sql database.

You probably have the same problem I had recently. Remove the Shared attribute of the related variables/methods and that should work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform