ASP.NET错误80040154类未注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG)) [英] ASP.NET error 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

查看:126
本文介绍了ASP.NET错误80040154类未注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个ASP.NET Web应用程序(包含Silverlight 4应用程序),它使用了几个COM dll。 dll已注册(通过在注册表中查找CLSID并查看CLSID中的类来验证),并且它们位于对所有用户具有完全控制权的目录中。



当我使用localhost方法运行VS调试时,一切运行正常,但是当我将其更改为使用IIS主机时,它会抛出错误:



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))





我使用的是Win7 64位,我已经启用了网站的appilcation池在IIS中允许32位应用程序。



不知道还有什么可以尝试。 dll是由第三方制造商提供给我们来计算他们的产品性能(我们需要帮助计算我们的产品性能),因此我无法在.NET中重建它们(并且制造商没有改变它们,因为他们会必须经过重新认证过程)。



谢谢,

Chris



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

推荐答案

本讨论讨论了可能解决错误的方法: http://forums.asp.net/t /1119052.aspx [ ^ ]



BTW还有很多其他讨论此处 [ ^ ]: thumbsup:
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[^] :thumbsup:


解决方案对我来说是一个愚蠢的疏忽。由于我仍在学习IIS,我将应用程序池设置为具有正确的设置,但我忘记将站点设置为使用应用程序池。



应用程序池必须被设置为允许32位应用程序,但它没有被网站使用。



到目前为止,这似乎已经成功了。



感谢您的帮助,

Chris
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


我在第一页上找到了这个谷歌搜索asp.net类未注册的210万结果:



http://forums.asp.net/p/1046003/1467497.aspx [ ^ ]
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[^]


这篇关于ASP.NET错误80040154类未注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆