Server Error in '/' Application.

The remote server returned an error: (500) Internal Server Error.

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.Net.WebException: The remote server returned an error: (500) Internal Server Error.

Source Error:


Line 1134:        //may timeout, has fixed in:
Line 1135:        //http://www.crifan.com/fixed_problem_sometime_httpwebrequest_getresponse_timeout/
Line 1136:        resp = (HttpWebResponse)req.GetResponse();
Line 1137:
Line 1138:        updateLocalCookies(resp.Cookies, ref curCookies);

Source File: d:\web\zhongzhuanzhan\App_Code\crifanLib.cs    Line: 1136

Stack Trace:


[WebException: The remote server returned an error: (500) Internal Server Error.]
   System.Net.HttpWebRequest.GetResponse() +6121635
   crifanLib.getUrlResponse(String url, Dictionary`2 headerDict, Dictionary`2 postDict, Int32 timeout, String postDataStr) in d:\web\zhongzhuanzhan\App_Code\crifanLib.cs:1136
   crifanLib.getUrlRespHtml(String url, Dictionary`2 headerDict, String charset, Dictionary`2 postDict, Int32 timeout, String postDataStr) in d:\web\zhongzhuanzhan\App_Code\crifanLib.cs:1166
   crifanLib.getUrlRespHtml(String url, String charset, Int32 timeout) in d:\web\zhongzhuanzhan\App_Code\crifanLib.cs:1207
   crifanLib.getUrlRespHtml(String url, String charset) in d:\web\zhongzhuanzhan\App_Code\crifanLib.cs:1212
   crifanLib.getUrlRespHtml(String url) in d:\web\zhongzhuanzhan\App_Code\crifanLib.cs:1217
   index.Page_Load(Object sender, EventArgs e) in d:\web\zhongzhuanzhan\index.aspx.cs:244
   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) +2207


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