Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IIS hosting having error

3 REPLIES 3
Reply
Message 1 of 4
arunkgvm
363 Views, 3 Replies

IIS hosting having error

In visual studio I coded for open an instance of an Autodesk Inventor in a web application using vb.net.The code is executed correctly in local.but when I am trying to host the file in IIS and try ,then it is not working some error will showing.This problem is also get when the visual studio is open as administrator mode and run.


my code is ..

 

GetInventorApplicationObject()
inventorApp.Visible = True
Dim oDoc As Document
oDoc = inventorApp.Documents.Open("F:\inventor\Proof Of Con\Cube.ipt")

End Sub

 

public sub GetInventorApplicationObject


If inventorApp Is Nothing Then
inventorApp = CreateObject("Inventor.Application")
Else
inventorApp = GetObject("Inventor.Application")
End If


End Sub

 

 

The Error Showing is,...

Cannot create ActiveX component.

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.Exception: Cannot create ActiveX component.

Source Error:


Line 335:
Line 336: If inventorApp Is Nothing Then
Line 337: inventorApp = CreateObject("Inventor.Application")
Line 338: Else
Line 339: inventorApp = GetObject("Inventor.Application")

Source File: F:\inventor\Proof Of Con\WebSite14\Default.aspx.vb Line: 337

anyone know what is the issue?

--- *AM* ----
Tags (1)
3 REPLIES 3
Message 2 of 4
philippe.leefsma
in reply to: arunkgvm

Hi arunkgvm,

 

I doubt anyone will help you resolve this issue: this is not a supported workflow to run Inventor from IIS the way you are trying to do and more importanly, you would be breaking the EULA, so it's illegal.

 

The reason why it doesn't work *might be* because the registry access is different for an exe running directly on the machine than for one running from IIS.

 

Regards,

Philippe.

 

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
arunkgvm
in reply to: philippe.leefsma

Thank you for your reply. Can you please send the link to EULA so that I can make sure am not doing anything illegal :)Smiley Happy

--- *AM* ----
Message 4 of 4
xiaodong_liang
in reply to: arunkgvm

The EULA document can be found after you installed the product .e.g.

 

C:\Program Files\Autodesk\Inventor 2014\Eula\*.rtf

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report