Can’t run Classic ASP on IIS 7 Windows Server 2008 64 Bit

asp-classiciis-7windows-server-2008

We have a couple of web apps built in Classic ASP which are currently running on Windows Server 2003 32 Bit and IIS 6.

We are trying to migrate this to a new server running Windows Server 2008 64 Bit with IIS 7. But we are finding it very difficult to make Classic ASP work on IIS 7 in a 64 Bit OS.

I got to a tage where running the following code:

<%

Response.Write "This is the new www5"
Response.End

%>

Gives us an error on Response.End

This is the new www5 error '8002801d' 

/test.asp, line 4 

I have enabled 32bit Applications, also registered a few times asp.dll running regsvr32.exe but no luck so far.

Tried restaring IIS, recycling the application pool after each config change but nothing.

Thanks in advance.

Federico

Best Answer

In the end it turned out to be a permission issue on the registry.

I googled a bit more and found that 8002801d error means than a library is not registered or not properly registered.

I used procmon to monitor the access to the registry and found out that a key under HKCR\TypeLib was getting access denied.

Then i tried to run regedt32 to add the permissions for the IIS USR to that key, but was getting access denied as well.

So I downloaded PSTOOLS and run the following command: psexec -s -i regedt32

That opened regedt32 without having any access denied popups and added the IIS USR to that key.

After doing this Classic ASP is working on IIS 7 Windows Server 2008 64 Bit.

Cheers, Federico

Related Topic