[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 785
  • Last Modified:

Application breaks when running in IIS on Windows 2003. (80040154 error)

I have a ASP.NET application that is built and runs fine on WindowsXP. The application uses a 3rd party library (ocx) to do its processing.

When we install the web site onto a Windows 2003 Server (64-bit or 32-bit), we get the following error:

Retrieving the COM class factory for component with CLSID {A7B8D183-B392-4492-8CDA-4D77593C5542} failed due to the following error: 80040154

The CLSID refers to the aforementioned 3rd party library.

I have a stand-alone executable that uses the library which works fine on the Windows2003 server. The error comes when used both in a Web App and Windows Service.

We installed and tested on a 32-bit server to rule out issues with 32 vs 64 bit architecture. It seems to be a security issue. However, we have opened up both the registry entries and file system objects to 'Everyone' and still receive the error.

We also have registered and re-registered the 3rd party OCX file.

We have exhausted all solutions we have seen out there and hope that you may be able to provide new suggestions.
0
mtanquary
Asked:
mtanquary
  • 4
  • 3
1 Solution
 
gjutrasCommented:
check your administrative tools, component services and open the permissions on the com object.  COM security is probably what's blocking you.  Assuming this is a non active directory server, I'd set the ntfs file security permissions to give IIS_WPG group permissions to do what you need, and take away the all on everyone permissions.
0
 
mtanquaryAuthor Commented:
I tried to do that, but I can't find the Component listed under DCOM config. Is there another place to look or a way to add the object to the list?
0
 
gjutrasCommented:
go to the registry and hkey_classes_root\clsid\A7B8D183-B392-4492-8CDA-4D77593C5542
and find the application guid that it points to
and then
change the view in the dcom section to details and try looking through the guid's to see if you can find it by guid referenced in the registry.  Maybe it's named a little different.
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
mtanquaryAuthor Commented:
I found the key in HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{A7B8D183-B392-4492-8CDA-4D77593C5542}...noting the added Wow6432Node .

I can not find the GUID in the AppID list in detail view.
0
 
gjutrasCommented:
Sorry, I'm out of ideas if there wasn't an id in the clsid branch.
0
 
mtanquaryAuthor Commented:
Thank you for looking into it for me. :-)
0
 
Tommie Nathaniel Carter, Jr., MBACommented:
You may want to try opening your IIS and reviewing the security entries related to the Application Pools associated with the website you are running. You might have to move the website into it's own website and application pool in order to change the security on the server to one that has access to the COM object. I would think that the web application is just running under IUSR or some such guest web account (no rights).

Alternatively in the web.config you could try using impersonation to execute the com object.
http://msdn2.microsoft.com/en-us/library/xh507fc5.aspx

You may also want to check out the dcom configuration settings using the method below.
http://support.sas.com/rnd/itech/doc9/admin_oma/sasserver/comdcom/xpsp2.html#dcomsrv
0
 
mtanquaryAuthor Commented:
Sorry, I have not responded. I was working on all of the suggestions and doing more research. I finally found that the problem was recompiling with x86. I had tried that initially, but I only recompiled the executable assembly and not the library assemblies. That got me past this issue. Of course, now there are others related to Oracle on 64-bit.....but that's another story.

Thanks for your help!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now