ASP.NET中的IIS和COM类错误 [英] IIS and COM Class error in asp.net

查看:98
本文介绍了ASP.NET中的IIS和COM类错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我开发了一个网站,当我们从VS2010运行该网站时,该网站运行良好.但是在IIS中托管并运行后,抛出如下错误

消息:Sys.WebForms.PageRequestManagerServerErrorException:由于以下错误,检索具有CLSID {2C6D3CA1-2350-101B-AE3A-0040332013F0}的组件的COM类工厂失败:80040154.

请尽快提出解决建议.

谢谢&问候
Sriman

Hi


I have developed a website which is working fine when we ran it from VS2010. But after hosting in IIS and running it throwing an error as follows

Message: Sys.WebForms.PageRequestManagerServerErrorException: Retrieving the COM class factory for component with CLSID {2C6D3CA1-2350-101B-AE3A-0040332013F0} failed due to the following error: 80040154.

Please suggest any work arounds asap.

Thanks & Regards
Sriman

推荐答案

你好,

此错误可能是由许多因素引起的.但最常见的是Com丢失/未注册以及64位操作系统上的32b应用程序池错误.

这就是我要做的:

1)确保com组件已存在并已在服务器上注册.使用REGSVR32 ComponentName.dll.

2)您的com com组件很可能是32位编译的.如果服务器是64b操作系统(例如w2008R2),则需要确保应用程序池是32位的,而不是默认的64b.为此,请打开IIS,创建一个新的应用程序池,选择属性,在高级设置中将启用32b应用程序"设置为true.更改您的网站应用程序池以使用此新应用程序池.

那应该可以解决您的问题.

祝您调试顺利. :)

Valery.
Hello,

This error could be caused by many factors. but the most common one is either Com missing/not registered and 32b app pool error on 64bit os.

This is what I would do:

1) Make sure that the com component is present and registered on the server. Use REGSVR32 ComponentName.dll.

2) It is likely that your com com component is compiled in 32bit. If the server is a 64b os (like w2008R2 for example), you need to make sure that the application pool is a 32bit one and not the default 64b. To do this open IIS, create a new app pool, select properties, in advanced settings set "Enable 32b application" to true. Change your website app pool to use this new one.

That should sort out your issues.

Good luck debugging. :)

Valery.


感谢您对Valery的回复.

我通过在IIS中设置自己的应用程序池及其在没有任何问题的情况下都能正常工作来解决了该问题.
Thank you for your reply valery.

I solved the issue by setting my own application pool in IIS and its working fine wihtout any issues.


这篇关于ASP.NET中的IIS和COM类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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