How to register a 32-bit .DLL COM + application in Windows 2008 R2

I read all such questions, but did not find that my exact problem answered. I have tried all such recommendations.

I have to migrate from a Windows Server 2003 environment to a Windows Server 2008 R2 environment using IIS 7.5. I have a web application that calls COM objects in a 32-bit DLL. The COM object was created from VB6. Here is what I have done so far:

  • I have enabled the 32-bit IIS application pool.
  • I registered .DLL and its dependent .DLL using C: /windows/syswow64/regsvr32.exe - registration was successful.
  • I checked that the .DLL components and it were found in the registry using C: / windows / syswow64 / regedit
  • I created a COM + object in component services (using syswow64 / dcomcnfg) and started them.
  • I created the Users role and added the Everyone group to it.

When I launch my application, the webpage freezes. I can find the following error in the COM object log file:

ActiveX component cannot create object Error: [429]: CDataAdministrator :: OpenCatalog

I compared the setup between the new server and the old server. One thing I notice is that on the old server, the DataAdministrator object (DataAdministrator.CDataAdministrator) is listed under the DCOM Config extension, but on the new server this is not so. And I can't seem to make him appear there.

I have no errors in the history of events or in the IIS weblogs. It seems to me that everything is registered, but it will not work. I see DLLHOST.EXE * 32 in the task manager, which runs under the account I specified.

I'm in difficulty here ... help?

+4
source share
2 answers

Register 32-bit COM applications on a 64-bit server

• Run ... Run ... C: \ WINDOWS \ SysWOW64 \ mmc comexp.msc / 32

As described here http: //msdn.microsoft.com...dcomcnfg.exe_and_64-bit_applications

This basically launches the 32-bit version of dcomcnfg.exe so that you can set the DCOM parameters for your 32-bit application on a 64-bit machine.

+3
source

Have you compiled an application for x86 only?

0
source

All Articles