上传网站后,2003 机子上运行网页出错,

showxier 2008-05-31 03:21:04
Retrieving the COM class factory for component with CLSID {8258A453-AAD4-41AF-94DF-43710611CACD} failed due to the following error: 80040154.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {8258A453-AAD4-41AF-94DF-43710611CACD} failed due to the following error: 80040154.

Source Error:


Line 26: int m_iFilesCount=0;
Line 27:
Line 28: ShowAdoDBM obj_AdoDB = new ShowAdoDBM();//这里错
Line 29:
Line 30: public string strNoticeId1 = "";


Source File: d:\StoneForestM_Web\main.aspx.cs Line: 28

Stack Trace:


[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {8258A453-AAD4-41AF-94DF-43710611CACD} failed due to the following error: 80040154.]
main..ctor() in d:\StoneForestM_Web\main.aspx.cs:28
ASP.main_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d7179473\19eaad6a\App_Web_fvdgtpyq.0.cs:0
__ASP.FastObjectFactory_app_web_fvdgtpyq.Create_ASP_main_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d7179473\19eaad6a\App_Web_fvdgtpyq.2.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161


...全文
78 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
周公 2008-05-31
  • 打赏
  • 举报
回复
要控件文件,把comctl32.ocx,mscomct2.ocx两个文件放到安装包里。
showxier 2008-05-31
  • 打赏
  • 举报
回复
怎么注册呢,我在XP机子上,用VS2005直接添加引用的,在本机上一切就完好,可到了服务器上就小错不断
amandag 2008-05-31
  • 打赏
  • 举报
回复
貌似你的Com组件Web服务器上没注册

62,039

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧