产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

V2后台失败,出现如下提示,请XIYOU帮忙分析一下。 [复制链接]

1#
[color=Red]后台登录可正常输入管理员、密码及验证码,点击登陆后出现如下提示,无法进入后台,但前台可以正常访问:[/color]
Server Error in '/' Application.

Unable to load DLL 'rasapi32.dll': 动态链接库(DLL)初始化例程失败。 (Exception from HRESULT: 0x8007045A)

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: Unable to load DLL 'rasapi32.dll': 动态链接库(DLL)初始化例程失败。 (Exception from HRESULT: 0x8007045A)

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

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() +136
   System.Net.AutoDetector.Initialize() +132
   System.Net.AutoDetector.get_CurrentAutoDetector() +20
   System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry) +53
   System.Net.WebProxy.UnsafeUpdateFromRegistry() +33
   System.Net.WebProxy..ctor(Boolean enableAutoproxy) +7
   System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section) +478
   System.Net.Configuration.DefaultProxySectionInternal.GetSection() +113

[ConfigurationErrorsException: Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section.]
   System.Net.Configuration.DefaultProxySectionInternal.GetSection() +208
   System.Net.WebRequest.get_InternalDefaultWebProxy() +133
   System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint) +173
   System.Net.HttpRequestCreator.Create(Uri Uri) +26
   System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) +225
   System.Net.WebRequest.Create(String requestUriString) +44
   PageAdmin.master_login.wGARO5J2E() +998
   PageAdmin.master_login.FnBaG0JZy() +155
   PageAdmin.master_login.nef8HPHul() +497
   PageAdmin.master_login.ggqmM6qQ8() +604
   PageAdmin.master_login.koklDTFj9() +636
   PageAdmin.master_login.Page_Load(Object src, EventArgs e) +569
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8387
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.master_login_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\microsoft.net\Framework\v4.0.30319\Temporary ASP.NET Files\root\090c0b19\c1b52ff3\App_Web_pxgho0dw.6.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022
分享 转发
TOP
2#

在网上搜了半天,找到了一个解决的办法,方法如下:
在 web.config中加入如下内容:
<system.net>
<defaultProxy>
<proxy usesystemdefault="false" />
</defaultProxy>
</system.net>
问题解决,后台正常进入。但不知道为什么会起作用?
TOP
发新话题 回复该主题