Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I have built an ASP.NET web application (that houses a Silverlight 4 app) and it utilizes a couple of COM dlls. The dlls are registered (verified by finding the CLSIDs in the registry, and seeing the classes within the CLSIDs), and they are located in a directory that has full control for all users.
 
When I run the VS debug using the localhost method, everything runs fine, but when I change it to use IIS hosting, it throws the error:
 
Retrieving the COM class factory for component with CLSID {006CA725-8B67-11D4-A067-FFF276E93345} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
 
I am using Win7 64-bit, and I have enabled the appilcation pool for the site in IIS to allow 32-bit applications.
 
Not sure what else to try. The dlls are provided to us by a 3rd party manufacturer to calculate their product performance (which we need to help calculate our product performance), so I am unable to rebuild them in .NET (and the manufacturer is not changing them since they would then have to go through the re-certification process).
 
Thanks,
Chris
Posted 27-May-11 3:13am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This discussion talks about a possible work around for the error: http://forums.asp.net/t/1119052.aspx[^]
 
BTW there are many other discussions here[^] Thumbs Up | :thumbsup:
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

The solution was a stupid oversight on my part. Since I am still learing IIS, i set the application pool to have the correct settings, but I forgot to set the site to use the application pool.
 
The application pool had to be set to allow 32-bit applications, which it was, but was not being used by the site.
 
So far this seems to have done the trick.
 
Thanks for the help,
Chris
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I found this on the first page of over 2.1 million results with a google search for "asp.net class not registered":
 
http://forums.asp.net/p/1046003/1467497.aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,518
1 OriginalGriff 383
2 Manas Bhardwaj 324
3 Tadit Dash 305
4 Peter Leow 255
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 5,856
2 Peter Leow 4,405
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 27 May 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid