Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to migrate a classic ASP application from a Windows Server 2003, IIS6 server to a Windows 2008, IIS 7 server.

The ASP page comes up fine, but the first time it tries to use our .NET interop DLL, it fails with the following error in the IIS logs:

2012-01-06 18:50:41 X.X.X.X POST /downloads.asp |27|ASP_0177_:_8000ffff|Server.CreateObject_Failed 80 - X.X.X.X Mozilla/5.0+(Windows+NT+6.1;+rv:8.0)+Gecko/20100101+Firefox/8.0 500 0 0 0

The corresponding line in the ASP page is:

Set subscription = Server.CreateObject("DLLNAME")

I successfully registered the DLL using RegAsm.exe, and confirmed by using a VBscript that successfully called CreateObject. I've also ensured both NETWORK SERVICE, IUSR_MACHINENAME, and IUSR have read access to the DLL location and the HKEY_USERS...Internet Settings\Zones.

Any thoughts?

share|improve this question

2 Answers 2

If it works from VBScript, perhaps it's a bitness problem?

Worker processes might be set with Enable32BitApp set to True, which is 32 bit, and the VBScript run from a regular CMD prompt would match the bitness of that prompt (which is 64 bit unless run from SysWow64).

So... check the Bitness is OK first. If it is, try ProcMon to log whatever the app's looking for, and check the event logs for specific error messages.

share|improve this answer
    
The server is 32-bit, so no bitness concerns. Initial attempts at using process monitor to diagnose the issue were unsuccessful, but I'm going to try that route again. –  Techno Skywalker Jan 16 '12 at 14:07
  1. Make sure you permit not only read access but also execute permissions on the DLL.
  2. Give IUSR read access to the entire HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings Key
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.