Unable to trigger .Net COM object on classic ASP / VBScript page (ASP error 0177)

I wrote a class library with COM support enabled in C # using .Net 3.5. The object is intended to provide some useful features for classic ASP pages. I wrote a test.asp page that initializes the desired object and calls its methods. Works well on my car.

On another computer (Windows Server 2003 - Standard Edition) it does not work, although the assembly is correctly registered in regasm. I checked regedit and afaik, it looks ok.

The error I get is "ASP 0177" (error code), "8000ffff; Server.CreateObject-Fehler" (error description), which translates as Server.CreateObject-Error.

Btw. the assembly is signed and does not have any other prefabricated assemblies as dependencies (only system elements).

Has anyone experienced something similar?

+2
source share
3 answers

Giving the IUSR user (or any user of your IIS) read access to the next registry key did the job for me and fixed the problem.

HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones 
+6
source

I think this is a security issue. It seems that you developed and tested the component on your own computer, which has many differences compared to the server (with a visual studio installed using an example).


EDIT: Check out this Microsoft Hotfix Hotfix patch:

+2
source
  • Locate and select the following registry subkey: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Internet Explorer \ MAIN \ FeatureControl \ FEATURE_IGNORE_ZONES_INITIALIZATION_FAILURE_KB945701
  • Note. If the FEATURE_IGNORE_ZONES_INITIALIZATION_FAILURE_KB945701 section does not exist, you must manually create it. If you are using a 64-bit OS, you may need to use HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Internet Explorer \ MAIN \ FeatureControl \ FEATURE_IGNORE_ZONES_INITIALIZATION_FAILURE_KB945701 instead
  • Right-click FEATURE_IGNORE_ZONES_INITIALIZATION_FAILURE_KB945701, select Create, and then DWORD Value
  • Type w3wp.exe to specify a new registry entry, and then press ENTER.
  • Right-click the w3wp.exe file and select Modify.
  • In the Value field, enter 1 and click OK.

After installing this registry key, a simple restart of the application pool will be applied. Your .NET COM components will no longer randomly stop working without a real solution other than shuffling application pools!

+1
source

All Articles