I am having a problem in an ASP .NET application that we are finishing up that is only now rearing it's ugly head. We have deployed the app to several departments for testing and now that there are multiple users on the system strange things are happening.
The app is running in IIS 6 on a Windows 2003 server. It was developed in Visual Studio 2008 targetting .NET 3.5. There is a login form that prepopulates with an employee number determined by the Windows user that is accessing the site. We have a centralized employee database that is a combination of AD information and employee data from our Accounting package and we tie into it using the Windows login account. IIS and SQL are on the same server and the IIIS App Pool that this application uses runs under the context of a domain account that has been assigned the dbo role on the database. I have even tried other IIS servers and other SQL boxes for the database.
Anyway, if only 1 person accesses the site at a time it works great. As soon as a second person logs in we start seeing errors appear. Most of them appear to be related to code that manipulates SQL data(ie 'Table 0 does not exist' or 'Column or property EmployeeID does not belong to table Table'). We also noticed that if there are multiple users, when a user opens the login form, the employee number that is prepopulated will be the number of the employee that accessed the form before them.
Like I said, we have moved the app and database to differrent servers with no luck. I know that this is not an issue with the code. It works fine in development and when used by only 1 user, but anything past that and it goes nuts. I have turned off our antivirus software, changed the App Pool, changed the identity that the App Pool runs under and republished multiple times but I feel like I'm spinning my wheels. I don't know if this is an issue with ASP .NET state management or if there is a limit on the number of allowed connections somewhere or what the problem may be, but it sure is giving us fits. Any help that you could give would be greatly appreciated!!