Arul Selvan

Arul Selvan

  • NA
  • 26
  • 52.1k

System.Net.WebException Timed Out

Feb 18 2011 6:04 AM
How to solve this problem

system.Net.WebException: The operation has timed out

Source Error:  
  1. Line 219: wcMicrosoft = new System.Net.WebClient();  
  2. Line 220: objUTF8Encoding = new UTF8Encoding();  
  3. Line 221: srchFile.Contents=objUTF8Encoding.GetString(wcMicrosoft.DownloadData(string.Format("{0}/{1}", Mongoose.Site.ApplicationPath, srchFile.Path)));  
  4. Line 222:  
  5. Line 223:  


Source File: c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs    Line: 221 

Stack Trace: 

[WebException: The operation has timed out] System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +338 System.Net.WebClient.DownloadData(Uri address) +181 System.Net.WebClient.DownloadData(String address) +26 Mongoose.UserSearch.GetDynamicFileContent(Page srchFile) in c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs:221 Mongoose.UserSearch.GetFileInfo(String FPath, Page srchFile) in c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs:176 Mongoose.UserSearch.GetInfo(String FPath) in c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs:140 Mongoose.UserSearch.ProcessFile(String Fpath) in c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs:108 Mongoose.UserSearch.ProcessDirectory(String targetDirectory) in c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs:93 Mongoose.UserSearch.Search(String targetDirectory) in c:\Documents and Settings\ARUL\Desktop\wctech\projects\For Students\unisys center\Mangoose\coding\App_Code\UserSearch.cs:80 Mongoose.Default2.SearchSite(String strSearch) +172 Mongoose.Default2.Page_Load(Object sender, EventArgs e) +198 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436  

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Answers (2)