System.Net.Webpermissions

Discussion in 'General troubleshooting' started by f303sr1, Jul 11, 2011.

  1. I am running a DotNetNuke web site on my Winhost site. This website uses a "Store" application that has a gateway to PayPal. When I process an order through PayPal everything works well on that side, but upon return to the webiste it get the following error message and the process stops.
    System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
    at System.Security.CodeAccessPermission.Demand()
    at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)
    at System.Net.HttpRequestCreator.Create(Uri Uri)
    at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
    at System.Net.WebRequest.Create(String requestUriString)
    at NEvoWeb.Modules.NB_Store.Gateway.GatewayPayPal.VerifyPayment(PayPalIPNParameters ipn, String verifyURL)
    at NEvoWeb.Modules.NB_Store.Gateway.GatewayPayPal.AutoResponse(Int32 PortalID, HttpRequest Request)
    The action that failed was:
    Demand
    The type of the first permission that failed was:
    System.Net.WebPermission
    The Zone of the assembly that failed was:
    MyComputer

    Research says to use "Trust Level = Full" in the web.config file. I've done that and still get the error.

    Any ideas on how to resolve this issue?

    Thanks
     
    Last edited by a moderator: Oct 14, 2015

Share This Page