Server Error in '/' Application.

The remote server returned an error: (404) Not Found.

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: (404) Not Found.

Source Error:


Line 136:    {
Line 137:        System.Net.WebClient wc = new System.Net.WebClient();
Line 138:        byte[] data = wc.DownloadData(url);
Line 139:	string str = System.Text.Encoding.GetEncoding("gb2312").GetString(data);
Line 140:        return str;

Source File: c:\inetpub\wwwroot\Heliconia_CMS\Portals\default.aspx    Line: 138

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +380
   System.Net.WebClient.DownloadData(Uri address) +117
   ASP.portals_default_aspx.get_data(String url) in c:\inetpub\wwwroot\Heliconia_CMS\Portals\default.aspx:138
   ASP.portals_default_aspx.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\Heliconia_CMS\Portals\default.aspx:78
   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.4110.0