I usually hate posting these types of questions since I usually find that the best way to learn is to find out the answer on my own.
However, I really need an answer to this question, because I have a client who cannot manage his business because of this problem.
Yesterday, my ASP.NET hosting provider moved my application from the server from .NET 1.1 to one of .NET 1.1 and 2.0. My problem is that when I test the move, the main site page (Default.aspx) will not load
"Description: The application attempted to perform an operation that is not permitted by the security policy. To grant the application the required permissions, contact your system administrator or change the application trust level in the configuration file.
Exception Details: System.Security.SecurityException: A permission request of type "System.Net.WebPermission, System, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" failed. "
[SecurityException: permission request of type 'System.Net.WebPermission, System, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check (Object demand, StackCrawlMark & stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand () +59 System.Net.HttpWebRequest..ctor (Uri uri, ServicePoint servicePoint) +147 System.Net.HttpRequestCreator.Create (Uri Uri) +26 System.Net.WebRequest .Create (Uri requestUri, Boolean useUriBase) +298 System.Net.WebRequest.Create (Uri requestUri) +28 System.Web.Services.Protocols.WebClientProtocol.GetWebRequest (Uri uri) +30 System.Web.Services.Protocols.Httpient .GetWebRequest (Uri uri) +12 System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest (Uri uri) +4 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (parameters String methodName, Object []) +52 PilatesPlusDublin.PilatesPlusDublinws.PilatesPlus.InsertException (String sModuleName, String sException, Int32 iUserID) +97 PilatesPlusDublin.MebDeflage_agedefault_load_load .UI.Control.OnLoad (EventArgs e) +99 System.Web.UI.Control.LoadRecursive () +47 System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350 System.Web.UI.Page .ProcessRequest (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213 System.Web.UI.Page.ProcessRequest () +86 System.Web.UI.Page.ProcessRequestWithNoAssert (HttpContext context) +18 System.WP.UI HttpContext) +49 ASP.maindefault_aspx.ProcessRequest (HttpContext context) +4 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () +358 System.Web.HttpApplication.ExecuteStep (step IExecutionStep, Boolean and completed synchronously) +64 "
WebPermission , , ? , web.config? . machine.config IIS.
, , , , , , ,