Torna al Thread

Security Exception 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.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Source Error: Line 454: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost:1141/WebServicesBB/GetAllenamento", RequestNamespace="http://localhost:1141/WebServicesBB", ResponseNamespace="http://localhost:1141/WebServicesBB", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] Line 455: public DataLayer.AllenamentiDataTable GetAllenamento() { Line 456: object[] results = this.Invoke("GetAllenamento", new object[0]); Line 457: return ((DataLayer.AllenamentiDataTable)(results[0])); Line 458: } Source File: d:\temp\root\21ebd850\424c288c\App_WebReferences.itrnxfxr.0.cs Line: 456 Stack Trace: [SecurityException: Request for the permission 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) +166 System.Net.HttpRequestCreator.Create(Uri Uri) +26 System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) +373 System.Net.WebRequest.Create(Uri requestUri) +28 System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri) +30 System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri) +12 System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri) +4 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +52 WebApplicationBB.WebServiceProxies.WsBB.GetAllenamento() in d:\temp\root\21ebd850\424c288c\App_WebReferences.itrnxfxr.0.cs:456
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5