Hi,
I've security exception when I try to run igUpload in medium trust environment. The stack is below:
[SecurityException: Falha na solicitação da permissão de tipo 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +34 System.Security.CodeAccessPermission.Demand() +46 System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54 Infragistics.Web.Mvc.UploadModule.GetWorkerRequest(HttpContext context) +46 Infragistics.Web.Mvc.UploadModule.OnBeginRequest(Object sender, EventArgs e) +102 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Is there a way to solve this?
If I remove the IGUploadModule from web.config the exception is gone, but progress bar and igupload client side events don't work properly (The fileUploaded event is essencial for me).
Thanks in advanced.
Hello Pilatos,
Thank you for contacting Infragistics!
I have done some looking into this matter and this seems to be a permissions issue. Please see the following link:
http://forums.asp.net/t/1422162.aspx
I would recommend trying giving full permissions and seeing if you get the same error or not.
Hello Mike,
My host does not allow to change the permission to full trust level. Only medium trust is available.
In this way, how can I solve this?
Thanks
Hello,
Thank you for the update. I have done some further looking into this matter and have found the following links that have some alternatives:
http://forums.asp.net/t/1458917.aspx
The one that sticks out is trying to set <compilation debug="false" /> of if you have that removing it from your web.config. Otherwise since this is a permissions issues it the igUpload does not have the permissions it requires I would expect it to fail.
Hello Mike
Thanks, but did not work.
I think that occurs because I can't set medium trust due my server does not allow. Is there a way to bypass this problem? Maybe turn off the progress bar or something else?
Hello Marcos,
Hiding or not using the progress bar would not solve the permissions issues. As the igUpload needs access to the file system to be able to upload the file which is why it needs the permissions. Why does your server not allow full trust? Can you talk to your admin about that?