需要帮助“包含该组件的组件或应用程序已被禁用” [英] Need help with "The component or application containing the component has been disabled"

查看:100
本文介绍了需要帮助“包含该组件的组件或应用程序已被禁用”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试支持使用类 GlobalConfigClass的旧Commerce Server 2002应用程序。


private GlobalConfig oConfig = new GlobalConfigClass();

当代码尝试实例化时,我收到此错误。


programname.exe中出现类型为"System.Runtime.InteropServices.COMException"的未处理异常。其他信息:包含该组件的组件或应用程序已被禁用。 br>
发生这种情况时,没有任何信息写入事件日志。我认为它与启用COM +有关,但我在这条消息上能找到的所有内容都是指Windows Server 2003,我在Windows XP上。此应用程序与Windows XP的另一台PC工作正常。我试图比较这两种环境,但没有任何东西向我跳出来。

我正在寻找有待检查的东西的想法。有没有人熟悉这类问题?

谢谢,
gwheeloc

解决方案

你好,

您是否可以尝试获取内存转储并检查它?

"Debug Diagnostic Tool v1.1""将抛出异常时帮助您获取内存转储。您可以从以下网址找到有关此工具的更多信息:

下载DebugDiag
http://www.microsoft.com/downloads/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en 结果
DebugDiag:简介
http://blogs.iis.net/sukesh /archive/2006/06/02/ddintro.aspx

(以下链接是从网址复制的:http://msmvps.com/blogs/bernard/archive/2006/07/22/Debugdiag-_2D00_-KB-Articles.aspx
内存转储 -
如何使用Debug Diagnostics 1.0工具分析内存转储文件


Hang -
如何使用调试诊断工具,以解决在IIS中停止响应的进程

崩溃 -
如何使用IIS调试诊断工具对IIS进程进行故障排除意外停止

高CPU使用率 -
如何使用调试诊断工具解决IIS中进程的高CPU使用率

高内存使用率 -
如何使用IIS调试诊断工具对消耗大量内存的IIS进程进行故障排除


I'm trying to support an older Commerce Server 2002 application which uses the class GlobalConfigClass.  

private GlobalConfig oConfig = new GlobalConfigClass();

When the code tries to instantiate this I receive this error. 

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in programname.exe
Additional information: The component or application containing the component has been disabled.

There isn't any information written to the event logs when this happens.  I think it has something to do with enabling COM+, but everything I've been able to find on this message refers to Windows Server 2003 and I'm on Windows XP.  This application works fine one other PC with Windows XP.  I've tried to compare the two environments but nothing is jumping out at me.

I'm looking for ideas on things to check.  Is anyone familar with this type of problem?

Thanks,
gwheeloc

解决方案

Hello,

May you try to get a memory dump and inspect it?

"Debug Diagnostic Tool v1.1" will help you in order to get a dump of your memory when the exception is thrown. You may find further information on this tool from the following urls:

Download DebugDiag
http://www.microsoft.com/downloads/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en

DebugDiag : Introduction
http://blogs.iis.net/sukesh/archive/2006/06/02/ddintro.aspx

( The links below are copied from the url: http://msmvps.com/blogs/bernard/archive/2006/07/22/Debugdiag-_2D00_-KB-Articles.aspx )
Memory dump -
How to use the Debug Diagnostics 1.0 tool to analyze a memory dump file 

Hang -
How to use the Debug Diagnostics tool to troubleshoot a process that has stopped responding in IIS

Crash -
How to use the IIS Debug Diagnostics Tool to troubleshoot an IIS process that stops unexpectedly

High CPU Usage -
How to use the Debug Diagnostics Tool to troubleshoot high CPU usage by a process in IIS

High Memory Usage -
How to troubleshoot an IIS process that consumes lots of memory by using the IIS Debug Diagnostics tool


这篇关于需要帮助“包含该组件的组件或应用程序已被禁用”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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