Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IIS hosting having error

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
307 Views, 2 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?

Tags (1)
2 REPLIES 2
Message 2 of 3
Daniela_Koloszko
in reply to: Anonymous

It is better to post this inquary on our Inventor customization forum. I will move it for you to this forum.



Daniela Koloszko

Message 3 of 3
jdkriek
in reply to: Anonymous

Have you tried using the full path?

 

\\server\path\inventor\Proof Of Con\Cube.ipt
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


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

Post to forums  

Autodesk Design & Make Report