“/”应用程序中的服务器错误。

远程服务器返回错误: (500) 内部服务器错误。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Net.WebException: 远程服务器返回错误: (500) 内部服务器错误。

源错误:


行 167:                HttpContext.Current.Response.End();
行 168:            }
行 169:            restxml.Load("http://api2.chinesemenu.com/DomainSite/GetXml?restid="+rid+"&country="+country+"");
行 170:            if (restxml.SelectSingleNode("/root/modules/module[@name='qr']") != null && HttpContext.Current.Request.UserAgent.Contains("Mobile"))
行 171:            {

源文件: d:\chinesemenu.all\default.chinesemenu.all\App_Code\IHttpHandler.cs    行: 169

堆栈跟踪:


[WebException: 远程服务器返回错误: (500) 内部服务器错误。]
   System.Net.HttpWebRequest.GetResponse() +5419453
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +69
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +3941427
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74
   System.Threading.CompressedStack.runTryCode(Object userData) +70
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +108
   System.Xml.XmlTextReaderImpl.OpenUrl() +186
   System.Xml.XmlTextReaderImpl.Read() +208
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
   System.Xml.XmlDocument.Load(XmlReader reader) +108
   System.Xml.XmlDocument.Load(String filename) +87
   UrlRewriter.GetRestPage(String rid, String country) in d:\chinesemenu.all\default.chinesemenu.all\App_Code\IHttpHandler.cs:169
   UrlRewriter.ProcessRequest(HttpContext Context) in d:\chinesemenu.all\default.chinesemenu.all\App_Code\IHttpHandler.cs:89
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


版本信息: Microsoft .NET Framework 版本:2.0.50727.8762; ASP.NET 版本:2.0.50727.8762