【发布时间】:2018-01-20 03:05:09
【问题描述】:
我有一个用 C# 编写的 Web 应用程序,它允许用户创建图表并将其导出到 Enterprise Architect。该插件也是用 C# 编写的,并使用选项 Register for COM Interop 构建。当我使用 Visual Studio 2015 调试应用程序时,它可以正常工作,但是当我尝试使用 IIS 部署它时,它就不起作用了。
我尝试使用
MyAddin.dll
c:\windows\...\4.0.30319\regasm c:\inetpub\wwwroot\myApp\bin\MyAddin.dll /codebase
然后使用键将其添加到注册表中
HKLM\Software\Wow6432Node\Sparx Systems\EAAddins\MyAddin
但我仍然收到错误消息。 错误如下:
"Error while executing transaction. Actions have been rolled back."
Exception"System.Runtime.InteropServices.COMException (0x80080005): Die COM-Klassenfactory für die Komponente mit CLSID
{67F4E0FA-46A7-4255-B084-69A9433D08C3}
konnte aufgrund des folgenden Fehlers nicht abgerufen werden: 80080005 Server execution failed (Ausnahme von HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
bei System.Activator.CreateInstance(Type type)
bei NAF.Util.EaUtil.load_ea_repository(String eapFilePath)
bei EABridge.CapabilityImporter.Import(Int32 projectId, String eaTemplatePath)
bei EAsyNAF.WebApp.Controllers.HomeController.<>c_DisplayClass15_0.<CreateProject>b_0(ITransaction transaction)
bei EAsyNAF.WebApp.Utils.TransactionUtils.ExecuteTransaction(Action`1 action, IDataServiceManager dataService, ILogger logger, Action customRollback)"
我使用的是 Windows 7 Enterprise 和 IIS 6.1 SP1
有人知道那可能是什么吗?
【问题讨论】:
标签: iis-6 enterprise-architect