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
Solved! Go to Solution.
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.
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
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.
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:
NXOpen.Utilities.NeedDOTNETAuthorLicenseException: Invalid NX signature found
at NXOpen.Utilities.BaseSession.verifyAssemblyData(Boolean callEvaluateStack)
Validation failed but author license exists - loading library