sumBuddy
Mechanical
- Jun 3, 2011
- 31
Hello Everyone -
I am attempting to sign my first program with the NXOpen .NET author, but I keep getting an error when I attempt to run the SignLibrary command in command prompt. The error reads:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B) at SignLibrary.JAM_SESSION_reserve_dotnet_author_license() as SignLibrary.Main(String[] args)
I can run my application in NX6.0.4.3 because the Log File reads:
System.Exception: Invalid NX signature found
at NXOpen.Utilities.BaseSession.verifyAssemblyData()
at NXOpen.Utilities.BaseSession.InitLicense()
Validation failed but author license exists - loading library.
I am using Visual Studio 2010 Express to embedd the resource file as "embedded resource", compile my source code and then attempt to run the SignLibrary command. Should I have an updated resource file when the Author license was added to my system? (When I open NXSigningResource.res in Notepad, the file just has two lines of text saying NXAUTHBLOCK, but no other information, is this correct?)
I do not know what I am doing wrong. I have attempted to follow the documentation that came with NX.
Any help would be greatly appreciated.
Thanks in advance,
sumBuddy (Mechanical)
--------------------------------------------------------------------------------
"I would like to change the world, but I can't find the source code."
I am attempting to sign my first program with the NXOpen .NET author, but I keep getting an error when I attempt to run the SignLibrary command in command prompt. The error reads:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B) at SignLibrary.JAM_SESSION_reserve_dotnet_author_license() as SignLibrary.Main(String[] args)
I can run my application in NX6.0.4.3 because the Log File reads:
System.Exception: Invalid NX signature found
at NXOpen.Utilities.BaseSession.verifyAssemblyData()
at NXOpen.Utilities.BaseSession.InitLicense()
Validation failed but author license exists - loading library.
I am using Visual Studio 2010 Express to embedd the resource file as "embedded resource", compile my source code and then attempt to run the SignLibrary command. Should I have an updated resource file when the Author license was added to my system? (When I open NXSigningResource.res in Notepad, the file just has two lines of text saying NXAUTHBLOCK, but no other information, is this correct?)
I do not know what I am doing wrong. I have attempted to follow the documentation that came with NX.
Any help would be greatly appreciated.
Thanks in advance,
sumBuddy (Mechanical)
--------------------------------------------------------------------------------
"I would like to change the world, but I can't find the source code."