Unable to locate Xml License file.System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission

If you are trying to use one of the Advanced Intellect components such as aspNetEmail and get the following error. Then you most likely need to update your web.config to use full trust for your application.  Please see this kb article:

Changing the default ASP.NET Trust Level

http://support.webecs.com/KB/a672/changing-the-default-aspnet-trust-level.aspx



Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to locate Xml License file.System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
  at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
  at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
  at System.Security.CodeAccessPermission.Demand()
  at System.Reflection.RuntimeAssembly.VerifyCodeBaseDiscovery(String codeBase)
  at System.Reflection.RuntimeAssembly.GetName(Boolean copiedName)
  at System.Reflection.Assembly.GetName()
  at ᐢ.ᐂ()
  at ᐢ.ᐁ(String , StringCollection )
  at ᐢ.ᐁ(String )
  at aspNetEmail.EmailMessage.ᐁ()
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.FileIOPermission

Add Feedback