Server Error in '/' Application.

The remote server returned an error: (403) Forbidden.

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: (403) Forbidden.

Source Error:


Line 42: 
Line 43:         var web = new WebClient();
Line 44:         Code = web.DownloadString(strUrl);
Line 45: 
Line 46: 

Source File: g:\websites\dotnetframework.org\dotnetframework.org\Default.aspx.cs    Line: 44

Stack Trace:


[WebException: The remote server returned an error: (403) Forbidden.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +380
   System.Net.WebClient.DownloadString(Uri address) +117
   _Default.Page_Load(Object sender, EventArgs e) in g:\websites\dotnetframework.org\dotnetframework.org\Default.aspx.cs:44
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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