Problem upgrading ISAPI Extension from VC++5.0 to VC++.NET
Posted on 2004-04-04
I have this app. that is running for almost 2 years now. It consists of an application server that is accessed by the ISAPI dll - both writen in C++ - on the server side. On the client side it has an Active/X control (.ocx) embedded in regular HTML that creates an http session with the isapi dll thru the IIS and communicates with it. This ocx is written in MFC based C++.
All this is in use on an NT4.0 server with IIS 4.0. Now I am upgrading it to Windows 2000 , IIS 5.0 and VC++.NET.
So far, all VC++5.0 modules install and run OK in the new server. The problem arises with the .NET version of the ISAPI Dll, which is compiled in the same server. I placed traces that write to the event viewer from each method of the isapi extension and found out that only the constructor and the GetExtensionVersion method are getting invoked, while the Default method is not. The funny thing is that when the same code is compiled using VC++5.0 on a win95 pc, everything works fine.
The following data refers to the environment I have on my lab to get this thing to work:
Windows 2000 5.00.2195 - Service Pack 2
MS Development Environment 2002 Version 7.0.9500
MS .NET Framework 1.0 Version 1.0.3705
Windows 98 Second Edition