Exception Handling in Protected .NET DLL Assemblies

Given the following circumstances:

>A .NET DLL assembly is protected with Sentinel LDK Envelope.

>An application (protected or unprotected) calls the .NET DLL assembly.

>An appropriate license for the .NET DLL assembly cannot be located.

The .NET DLL assembly will raise a system exception. This is the expected behavior. The application that called the .NET DLL assembly should contain appropriate code to catch the exception and handle it. For example, the application can display a message stating that the user must connect an HL key that contains the required license.

Note that for an EXE assembly, the code added by Sentinel LDK Envelope can notify the user that the required protection key was not found and can quit the program because this issue is detected at program startup. But a .NET DLL assembly can be called at any point during a program’s execution, so it is up to the developer to decide how to respond if the required license is not found.