[英]Cannot create ActiveX component in inventor api
I using Inventor api programming using vb.net.Here is my code for opening a inventor application. 我使用vb.net使用Inventor api编程。这是打开inventor应用程序的代码。
inventorApp = CreateObject("Inventor.Application")
inventorApp.Visible = True
Dim oDoc As Document
oDoc = inventorApp.Documents.Open("F:\inventor\Cube.ipt")
the code is working fine and open the document while debugging in visual studio and working fine .but I trying to 该代码运行正常,并在Visual Studio中调试并正常工作时打开文档。但是我试图 host this web app in local IIS and try then the following error is showing. 在本地IIS中托管此Web应用程序,然后尝试显示以下错误。
anybody know what is the problem. 任何人都知道问题出在哪里。
That's most likely a security issue. 这很可能是安全问题。 If you want to create an ActiveX component, you have to add the permissions using dcomcnfg.exe 如果要创建ActiveX组件,则必须使用dcomcnfg.exe添加权限。
Take a look at George's answer: http://www.velocityreviews.com/forums/t81423-re-vb-net-excel-automation-issue-cannot-create-activex-component.html 看看乔治的答案: http : //www.velocityreviews.com/forums/t81423-re-vb-net-excel-automation-issue-cannot-create-activex-component.html
By the way, I would recommend using the Inventor Apprentice Library. 顺便说一句,我建议使用Inventor学徒库。 It does most of the things Inventor does but it is much quicker. 它可以完成Inventor的大部分工作,但速度要快得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.