Hello All,
I'm porting an old web app to Server2008/IIS7 (it was originally written in VS2005 and runs on XP Pro and Windows Server 2003).
This app imports from functions from an unmanaged DLL.
When I was first running my app I was getting a bunch of "Unable to load DLL" errors. I then figured out that I needed to copy the unmanaged DLL to the Temporary ASP.NET folder and the DLL is now found (but this is another thread!) but the application runs.
Outside the IDE, whenever my app calls the unmanaged code (using DllImport) my app crashes painfully and I see the following in the Application Log:
Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000374, fault offset 0x000b015d, process id 0x142c, application start time 0x01c954c955ce8d65.
I've seen other posts here and elsewhere regarding this, but I've not seen any real solutuions or explanations as to the actual cause of the problem.
Can anyone shed some light on this?
What is the actual problem?
What is the solution?
TIA
-tomas