VB.NET error . . . Unable to load DLL 'libpart'
VB.NET error . . . Unable to load DLL 'libpart'
(OP)
Hi,
I have created a "code" vb.net from the journal file.
When I run it from Tools Journal Play, it work fine . . .
But if I copy the same code into Visual Studio and start Debugging, I have always
this error message :
Unable to load DLL 'libpart': The specified module could not be found.
The error is located on this line :
Dim theSession As Session = Session.GetSession()
What's wrong ??? Please Help !!!
I tried to compile in command line, but no success ...
Configuration:
NX6.0.5
Win XP SP3
VB Visual Studio express 2005
Framework 2.0
Console Application
Thank a lot
I have created a "code" vb.net from the journal file.
When I run it from Tools Journal Play, it work fine . . .
But if I copy the same code into Visual Studio and start Debugging, I have always
this error message :
Unable to load DLL 'libpart': The specified module could not be found.
The error is located on this line :
Dim theSession As Session = Session.GetSession()
What's wrong ??? Please Help !!!
I tried to compile in command line, but no success ...
Configuration:
NX6.0.5
Win XP SP3
VB Visual Studio express 2005
Framework 2.0
Console Application
Thank a lot





RE: VB.NET error . . . Unable to load DLL 'libpart'
There may be a way to get it to see these however this thread may also be of use h
Mark Benson
Aerodynamic Model Designer
To a Designer, the glass was right on CAD.
RE: VB.NET error . . . Unable to load DLL 'libpart'
in case of an external app:
"
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libpart':
The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at NXOpen.Session.SessionForceLoad()
at NXOpen.Session.GetSession()
at ConsoleApplication1.EX_Curve_CreateArc.Main() in C:\........\EX_Curve_
CreateArc.vb:line 28
Press any key to continue . . .
"
and for a dll project I get
"error in external library".....function : ufusr
I know that for c++(I think) you have to implement ufusr...but why am I getting this error?
there is no doc about how to set the path in case of the first error...anyone has a clue?....this is becoming rocket science for me............:(
1 second ago
RE: VB.NET error . . . Unable to load DLL 'libpart'
Since you mentioned an external app, my guess is that you need to run it in the NX7.5 environment (via the NX7.5 Command Line).
Marc
NX Software Developer