cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid NX signature found

Creator
Creator

Hi All,

 I have created VB project using NX7 Open VB Wizard.

All references and environment are loaded. But when i compile and debug the line

"Dim theSession As Session = Session.GetSession()"  i get "System.Exception:Invalid NX signature found"

 

How do i rectify this.

Any suggestion and help would be appreciated. I am beginner in this

 

Thanks

GNR

 

14 REPLIES

Re: Invalid NX signature found

Esteemed Contributor
Esteemed Contributor

Check the NX syslog and if you get a System.Security.Cryptography.CryptographicException before, then this is a general Windows .NET problem and is caused by a corrupted cryptography cache of the executing user.

I had this problem once and it was resolved by deleting the cryptographic cache folder of the user.

I have received the following answer from the GTAC support engineer:

Another very rare case was seen while installing another product which failed with a similar issue and it could be solved by the following steps:
Possible Cause: 
Information in the Microsoft Crypto folder has become corrupted. 
Solution: 
1. Navigate to C:\Users\<username>\AppData\Roaming\Microsoft.
   Note: AppData is a hidden folder so you may need to show hidden files and folders if you do not see that folder.
2. Rename the Crypto folder to CryptoOld.
3. Once that folder has been renamed, try installing the software again.

Hope this helps.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: Invalid NX signature found

Creator
Creator

Thanks stefan.

 

I will try and let you know

Re: Invalid NX signature found

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Did you generate .dll? make sure that you sign your application and ensure that you have author license.

SE-Advanced
Siemens Industry Software

Re: Invalid NX signature found

Creator
Creator

Hi,

Thanks for reply

 

i am working with .exe.  but how do i sign it. 

How to check i have author license or not

 

Please help

 

Thanks

GNR

Re: Invalid NX signature found

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Signing NXOpen application is must and you can refer here for details on how to sign particular type of application.

 

This link ( http://nxjournaling.com/content/nx-open-author )offers some help related to knowing how to know if you have author license.

 

I will suggest you to sign the application first and test again. If it works after that then you have required license else you need to probe more.

SE-Advanced
Siemens Industry Software

Re: Invalid NX signature found

Creator
Creator

thanks shri

Re: Invalid NX signature found

Siemens Phenom Siemens Phenom
Siemens Phenom

Note that NX will allow you to run an NX Open .Net .DLL if a valid author license is present, even if the program has not been signed.  This was done to allow you to test/debug/modify your code without stopping each time to sign it.

 

You should see something like this in the log file when you try to run a program that has not been signed, if you have a valid author license present:

 

Validation failed
NXOpen.Utilities.NeedDOTNETAuthorLicenseException: Invalid NX signature found
   at NXOpen.Utilities.BaseSession.verifyAssemblyData(Boolean callEvaluateStack)
   at NXOpen.Utilities.BaseSession.InitLicense()
Validation failed but author license exists - loading library

 

Re: Invalid NX signature found

Creator
Creator

Hi Steve,

 

I get exception lillte different.Please find attchemnt

 

Thanks

GNR

 

Re: Invalid NX signature found

Siemens Phenom Siemens Phenom
Siemens Phenom

Does your program stop at that point?  What shows in the NX syslog?