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

Server Error in '/PrivateListings' 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 82:         Dim objResponse As WebResponse
Line 83:         Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(url)
Line 84:         objResponse = objRequest.GetResponse()
Line 85:         Dim sr As StreamReader
Line 86:         sr = New StreamReader(objResponse.GetResponseStream())

Source File: E:\WebSites\BrokersListings\PrivateListings\ListingDetails.aspx.vb    Line: 84

Stack Trace:


[WebException: The remote server returned an error: (500) Internal Server Error.]
   System.Net.HttpWebRequest.GetResponse() +1399
   PrivateListings_ListingDetails.readHtmlPage(String url) in E:\WebSites\BrokersListings\PrivateListings\ListingDetails.aspx.vb:84
   PrivateListings_ListingDetails.DisplayForm() in E:\WebSites\BrokersListings\PrivateListings\ListingDetails.aspx.vb:73
   PrivateListings_ListingDetails.Page_Load(Object sender, EventArgs e) in E:\WebSites\BrokersListings\PrivateListings\ListingDetails.aspx.vb:32
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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