I was required to show a page content (HTML form) in a java script popup window. The application is built on ASP.NET technology. Since the content to show is dynamic i.e.it is decided at run time what to show. So I used HttpWebRequest/HttpWebResponse classes to get the HTML content that is to show in the JS Pop Up window.The resulting response string is displayed with the use of PlaceHolder control.
Before load balancing, it was runing perfectly. But the implementation ofthe load balancing, it starts throwing error. The error is as follows:
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. --->
System.Net.WebException: The underlying connection was closed: An
unexpected error occurred on a receive.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
I have replaced the HttpWebRequest/HttpWebResponse classes with System.Web.WebClient but it is still throwing the same error.
View Complete Post