Inventor 2015 & VB.NET - Documents.open failure

Inventor 2015 & VB.NET - Documents.open failure

Anonymous
Not applicable
417 Views
1 Reply
Message 1 of 2

Inventor 2015 & VB.NET - Documents.open failure

Anonymous
Not applicable

Hi to all,

I'm developing a web Application with VB.NET (Visual Studio 2010) and Inventor 2015 on a Windows Server 2012 R2 and IIS 8.

 

While i'm debugging on my computer everything is working fine and everything it's good.

 

When i publish on the WebServer i get and Exception on the command inventorApplication.Documents.Open('myFile.ipt', True)

 

here is my code, could anyone help me?

I think it's a permission problem, but i tryied to set everyone to full control to all the WebDirectory but with bad success.

 

Dim invApp As Inventor.Application
Try
   invApp = CreateObject("Inventor.Application")
   With invApp
      .Visible = False
      .SilentOperation = True
   End With

   Dim myProcesses() As Process
   Dim instance As Process
   myProcesses = Process.GetProcessesByName("Inventor")

   For Each instance In myProcesses
        instance.PriorityClass = ProcessPriorityClass.RealTime
   Next
Catch ex As Exception
End Try

 and here where the error

 

Dim sIPT As String = "myFile.ipt"
Try
   Dim docCorpo As Document
   docCorpo = invApp.Documents.Open(sIPT, True)
Catch ex As Exception
   sReturn = String.Format("{1} !!Open Document: KO!! [{0} - {2}]", ex.Message, sReturn, ex.InnerException)
End Try

Thanks for any reply

Emanuele

0 Likes
418 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Hello,

 

can you link the exception details ?

0 Likes