Hallo Mario,
Zitat:
Original erstellt von Supermario:[i]
+++ Assembly has not been compiled with an NX resource bundle
Da du das ganze kompilieren willst, musst du die NXSigningResource.res in dein Projekt integrieren.
Hier ein Auszug aus der NX Hilfe:
Loading .NET Libraries and Licensing
To use the NX Open API in a compiled .NET application, the application must be signed with the NX signing tool. This applies both to .NET DLLs that are loaded into an existing NX session (via the Run→NXOpen menu) and to standalone .NET executables that create an NXOpen.Session object.
When you load a .NET library into NX, the system checks the embedded signature. If it finds no signature or the signature is invalid, it will not load the library.
If a .NET authoring license is available, the system loads an unsigned library, but writes a message to the syslog. This avoids having to repeatedly sign the library during the development process.
Signing a library is a two step process:
Embedding the NX resource file in a DLL or application.
Running the NX signing tool.
The following sections explain each step.
1. Embedding the NX Resource File
[...]
When using a Visual Studio session to compile an application, make sure that after you add the NXSigningResource.res file to a project, set the Compile property on the resource file to Embedded Resource.
2. Running the NX Signing Tool
Once you have embedded the resource, sign it using the SignLibrary utility. For example:
SignLibrary MyApp.dll
You can find the SignLibrary utility in the UGII kit directory on the NX installation. You can only run this utility when a .NET authoring license is available.
Verification
To verify that a library or application has been correctly signed, use the -verify option. For example:
SignLibrary -verify MyApp.dll
This displays a message confirming whether the file has been correctly signed or not.
License Manager
There are three license manager methods that allow user programs to have fine control of licenses used by their programs. For specific methods, see the LicenseManager Class in the NX Open for .NET Reference Guide.
Wenn du also keine "dotnet_author" Lizenz hast, müsstest du dich evtl. auf Journals beschränken, die benötigen zur Ausführung lediglich eine "dotnet_runtime" Lizenz und brauchen auch nicht signiert werden.
Ciao
Mario
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP