Server Error in '/' Application.

ag和记娱乐_和记官方app_和记国际

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DllNotFoundException: ag和记娱乐_和记官方app_和记国际

Source Error:


Line 74:     {
Line 75:         System.Net.WebClient wc = new System.Net.WebClient();
Line 76:         byte[] data = wc.DownloadData(url);
Line 77:         return data;
Line 78:     }

Source File: d:\wwwroot\gtyl\wwwroot\global.asax    Line: 76

Stack Trace:


[DllNotFoundException: Unable to load DLL 'rasapi32.dll': 动态链接库(DLL)初始化例程失败。 (Exception from HRESULT: 0x8007045A)]
   System.Net.RasHelper.RasEnumConnections(RASCONN[] lprasconn, UInt32& lpcb, UInt32& lpcConnections) +0
   System.Net.RasHelper.GetCurrentConnectoid() +237
   System.Net.AutoDetector.Initialize() +161
   System.Net.AutoDetector.get_CurrentAutoDetector() +37
   System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry) +86
   System.Net.WebProxy.UnsafeUpdateFromRegistry() +61
   System.Net.WebProxy..ctor(Boolean enableAutoproxy) +51
   System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section) +1932
   System.Net.Configuration.DefaultProxySectionInternal.GetSection() +203

[ConfigurationErrorsException: Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section.]
   System.Net.Configuration.DefaultProxySectionInternal.GetSection() +324
   System.Net.WebRequest.get_InternalDefaultWebProxy() +137
   System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint) +249
   System.Net.HttpRequestCreator.Create(Uri Uri) +51
   System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) +582
   System.Net.WebRequest.Create(Uri requestUri) +98
   System.Net.WebClient.GetWebRequest(Uri address) +40
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +164

[WebException: An exception occurred during a WebClient request.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +428
   System.Net.WebClient.DownloadData(Uri address) +196
   System.Net.WebClient.DownloadData(String address) +108
   ASP.global_asax.get_data(String url) in d:\wwwroot\gtyl\wwwroot\global.asax:76
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\wwwroot\gtyl\wwwroot\global.asax:27
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +177
   System.Web.SessionState.SessionStateModule.OnStart(EventArgs e) +37
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +375
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1444
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +238
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +194


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272