Hellow ,
We have hosted an webserive , and from Plugin we are trying to consume .
When i register my plugin in None Mode , it works fine , but when i register it in Sandbox i am facing below error message .
Error : Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
Code :
XYZService serviceProxy = new XYZService ();
serviceProxy.Url = ncmsServiceHostUrl.TrimEnd('/') + "/samplexyz.asmx"; // Error Occurs when executing this line .
Currently we need to register our plugin in Sandbox mode , Also our Service url is an full trusted url .
Kindly advice on above issue .
Thanks ,
*This post is locked for comments