Getting an error when trying to set the license

Security Exception body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } Below is the Error when trying to set the license. Will this application work on medium trust level..


Description:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.



Hi,

Thank you for considering Aspose.

Well, the issue seems to be of security permission setting for the IO operation, I think you are not allowed to access the file system completely. To confirm this exception, you may try to run the code to open the file without involving Aspose.Cells, e.g…, FileStream fs = File.Open(…)

I think you need to modify the proper security settings for your requirements. You may try to assign Administrative role for your web application.

Thank You & Best Regards,