开发者

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

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


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


Do this Step by Step:

Go to control panel Windows features on/off Tick this features:

3.a) Internet Information Service>Web management tools>IIS6 Management Compatibility

3.b) Internet Information Service>Web management tools>IIS Management Console

3.c) Internet Information Service>Worldwide web services>Application dev. features>ASP

3.d) Internet Information Service>Worldwide web services>Application dev. features>ISAPI Extentions


To solve this issue you should change the application pool to "classic asp" in IIS settings and also change the application 64bit to 32bit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜