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 34:         {
Line 35:             WebClient w = new WebClient();
Line 36:             string s = w.DownloadString("http://canadanepal.info/dailynews/");
Line 37:             string predata1 = "<param name=\"movie\" value=\"http://www.youtube.com/v/";
Line 38: 		string predata = "www.youtube.com/embed/";

Source File: c:\inetpub\wwwroot\NepaliFMStuff\NepaliNewsVideo.aspx.cs    Line: 36

Stack Trace:


[WebException: The remote server returned an error: (403) Forbidden.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +365
   System.Net.WebClient.DownloadString(Uri address) +111
   comedy.GetYouTubeURL() in c:\inetpub\wwwroot\NepaliFMStuff\NepaliNewsVideo.aspx.cs:36
   comedy.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\NepaliFMStuff\NepaliNewsVideo.aspx.cs:20
   System.Web.UI.Control.OnLoad(EventArgs e) +103
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1381


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