2

I am running the following code which tries to access a custom assembly.

MySection sec = (MySection)System.Configuration.ConfigurationManager.GetSection("ColorReader");

The above line throws various exceptions which are listed below:

The application requires full trust permissions to run correctly.
When deploying an office solution check to make sure you have fulfilled all the necessary security requirements. Use a certificate to obtain the required permissions.
If an assembly implementing the custom security object references other assemblies, add the referenced assemblies to the full trust assembly list.

svick
  • 236,525
  • 50
  • 385
  • 514
azamsharp
  • 19,710
  • 36
  • 144
  • 222

0 Answers0