账号通
    

账号  

密码  

1694

查看

2

回复
主题:升级后QQ快捷登录无法登录 [收藏主题]  
a77303383 当前离线

694

主题

86

广播

4

粉丝
添加关注
级别:六年级

用户积分:4470 分
登录次数:648 次
注册时间:2007/7/21
最后登录:2023/6/25
a77303383 发表于:2013/12/26 15:23:44   | 只看该作者 查看该作者主题 楼主 
出现以下错误                 “/”应用程序中的服务器错误。
无法加载 DLL“rasapi32.dll”: 动态链接库(DLL)初始化例程失败。 (异常来自 HRESULT:0x8007045A)。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.DllNotFoundException: 无法加载 DLL“rasapi32.dll”: 动态链接库(DLL)初始化例程失败。 (异常来自 HRESULT:0x8007045A)。

源错误:

 只有在调试模式下进行编译时,生成此未处理异常的源代码才会显示出来。若要启用此功能,请执行以下步骤之一,然后请求 URL:

1. 在产生错误的文件的顶部添加一条“Debug=true”指令。例如:

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

或:

2. 将以下的节添加到应用程序的配置文件中:

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

请注意,第二个步骤将使给定应用程序中的所有文件在调试模式下进行编译;第一个步骤仅使该特定文件在调试模式下进行编译。

重要事项: 以调试模式运行应用程序一定会产生内存/性能系统开销。在部署到生产方案之前,应确保应用程序调试已禁用。

堆栈跟踪:

 [DllNotFoundException: 无法加载 DLL“rasapi32.dll”: 动态链接库(DLL)初始化例程失败。 (异常来自 HRESULT:0x8007045A)。]   System.Net.RasHelper.RasEnumConnections(RASCONN[] lprasconn, UInt32& lpcb, UInt32& lpcConnections) +0   System.Net.RasHelper.GetCurrentConnectoid() +105   System.Net.AutoDetector.Initialize() +122   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) +441   System.Net.Configuration.DefaultProxySectionInternal.GetSection() +109[ConfigurationErrorsException: 创建在“system.net/defaultProxy”配置节中指定的 Web 代理时出错。]   System.Net.Configuration.DefaultProxySectionInternal.GetSection() +207   System.Net.WebRequest.get_InternalDefaultWebProxy() +125   System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint) +184   System.Net.HttpRequestCreator.Create(Uri Uri) +26   System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) +216   System.Net.WebRequest.Create(Uri requestUri) +31   Kesion.Collection.CollectionCommon.GetHttpPage(Uri url, String coding) +119   ASP.user_api_qq_callback_aspx.qq_callback() +291   ASP.user_api_qq_callback_aspx.Page_Load(Object sender, EventArgs e) +198   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) +99   System.Web.UI.Control.LoadRecursive() +50   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6741   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242   System.Web.UI.Page.ProcessRequest() +80   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21   System.Web.UI.Page.ProcessRequest(HttpContext context) +49   ASP.user_api_qq_callback_aspx.ProcessRequest(HttpContext context) +4   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


版本信息: Microsoft .NET Framework 版本:2.0.50727.3649; ASP.NET 版本:2.0.50727.3634
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2013/12/26 15:26:07   | 只看该作者 查看该作者主题 沙发 
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
a7730338323 当前离线

3

主题

1

广播

0

粉丝
添加关注
级别:学前班

用户积分:23 分
登录次数:42 次
注册时间:2012/9/24
最后登录:2014/2/10
a7730338323 发表于:2013/12/26 15:42:06   | 只看该作者 查看该作者主题 藤椅 
科汛智能建站系统

确实可以了







最近在做文章采集系统时用到了WebClient,在本地测试好好的,可是上传到服务器上老报错。最后经过步步检查,发现问题出在无法加载 DLL“rasapi32.dll”,刚开始还以为是服务器的权限问题了,可是最后发现不是,解决该问题的办法其实很简单,只需要在web.config文件中加入如下的代码就ok了



<system.net>



    <defaultProxy>



      <proxy usesystemdefault="False" />



    </defaultProxy>



  </system.net>

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.16406秒 powered by KesionCMS 9.0