Exception for loading encrypted documents no longer SecurityException

Hi GemBox Team,

I previously used the Bundle version 47.0.1227 and updated to the newer version 47.0.1370 now.

When I load an encrypted file without the correct password, I received a SecurityException, like described in Word Encryption from C# / VB.NET applications before, but with the newer version this type seems not to fit anymore. It still has the same error message though (“Can not open encrypted file without password”).
Which type does the exception in this case have?

Best regards,

We have replaced SecurityException with CryptographicException because it’s a more appropriate type for this case.

The SecurityException is related to permissions required to access some resources while CryptographicException is related to cryptographic operations.