Unhandled Exception: System.Security.SecurityException: Request for the permissi
on of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMa
rk& 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(Uri requestUri)
at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)
at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri
)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at GVGPublicWebService.GetAllManufacturersVehicleReportData(String login, Str
ing password, String dateTimeFrom)
at Program.Main(String[] args)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Net.WebPermission
The first permission that failed was:
The demand was for:
The granted set of the failing assembly was:
The assembly or AppDomain that failed was:
App, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
The method that caused the failure was:
System.Xml.XmlNode GetAllManufacturersVehicleReportData(System.String, System.St
ring, System.String)
The Zone of the assembly that failed was:
Intranet
The Url of the assembly that failed was:
file:///H:/gvg/App.exe