Kenja824
Automotive
- Nov 5, 2014
- 958
I posted some months ago about this same problem.
[URL unfurl="true"]http://www.eng-tips.com/viewthread.cfm?qid=377516[/url]
One of the problems coming to a solution was that due to privacy issues I was not allowed to post anything with the name of the company who made the .exe file nor the name of the file. So I was even told by my bosses that I couldn't post the details of the error.
Well due to the fact they are pushing me to get this done now, I am going to try and post the details of the error and just X out any info I believe could be a privacy problem. And hope I don't miss any. lol
When I go to FILE - EXECUTE - NX OPEN and select their file, it will run perfect and at the end, a dialog box will open for me to choose an option of how to continue. These options will work perfect. HOWEVER, if I use a macro that runs the EXE file the same way, the file seems to work fine until the option dialog box opens up. Then it does not continue when I select my option. Because the file runs as soon as I select it in the recording, I never get a chance to stop recording until the program is done. I tend to think that the macro is still trying to run while the program runs and it causes a problem with selecting options.
In the thread I linked to above, someone gave me a journal code to run the program. Others tried it for other programs and it seems to work for them, but for this program it gets an error....
Microsoft .NET Framwork
The type initializer for "XXXX.Main' threw an exception.
DETAILS.... (Note* Any privacy possibilities have been replaced with XXXX)
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'XXXX.Main' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'NXOpen, Version=9.0.0.19, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at XXXXX.Main..cctor()
--- End of inner exception stack trace ---
at XXXX.frmReport.sCreateReportHeader()
at XXXX.frmReport.frmReport_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am hoping someone might know by this info what I can do or try, to fix the problem. Whether anyone can help or not, I want to thank you ahead of time for any effort you put into this.
)
[URL unfurl="true"]http://www.eng-tips.com/viewthread.cfm?qid=377516[/url]
One of the problems coming to a solution was that due to privacy issues I was not allowed to post anything with the name of the company who made the .exe file nor the name of the file. So I was even told by my bosses that I couldn't post the details of the error.
Well due to the fact they are pushing me to get this done now, I am going to try and post the details of the error and just X out any info I believe could be a privacy problem. And hope I don't miss any. lol
When I go to FILE - EXECUTE - NX OPEN and select their file, it will run perfect and at the end, a dialog box will open for me to choose an option of how to continue. These options will work perfect. HOWEVER, if I use a macro that runs the EXE file the same way, the file seems to work fine until the option dialog box opens up. Then it does not continue when I select my option. Because the file runs as soon as I select it in the recording, I never get a chance to stop recording until the program is done. I tend to think that the macro is still trying to run while the program runs and it causes a problem with selecting options.
In the thread I linked to above, someone gave me a journal code to run the program. Others tried it for other programs and it seems to work for them, but for this program it gets an error....
Microsoft .NET Framwork
The type initializer for "XXXX.Main' threw an exception.
DETAILS.... (Note* Any privacy possibilities have been replaced with XXXX)
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'XXXX.Main' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'NXOpen, Version=9.0.0.19, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at XXXXX.Main..cctor()
--- End of inner exception stack trace ---
at XXXX.frmReport.sCreateReportHeader()
at XXXX.frmReport.frmReport_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am hoping someone might know by this info what I can do or try, to fix the problem. Whether anyone can help or not, I want to thank you ahead of time for any effort you put into this.