Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET COM DLL Silverlight4 , +
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 4: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
0 OriginalGriff 6,569
1 Sergey Alexandrovich Kryukov 6,168
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100