我有一个使用C#编写的Web应用程序,它允许用户创建图表并将它们导出到Enterprise Architect。该插件也用C#编写,并使用选项Register for COM Interop
构建。当我使用Visual Studio 2015调试应用程序时,它可以正常工作,但是当我尝试使用IIS进行部署时,它不起作用。 我尝试使用IIS无法找到Enterprise Architect Addin
c:\windows\...\4.0.30319\regasm c:\inetpub\wwwroot\myApp\bin\MyAddin.dll /codebase
注册手动MyAddin.dll
,然后将其添加到注册表中,用键
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企业版和IIS 6.1 SP1
是否有人有一个想法,可能是什么?
您必须使用加载项来部署您的Sparx Ea安装,并且用户可以像登录一样运行(这是可能的),然后让您的网站从那里拨打Sparx EA – Mart10