Hi all,
I am getting "The remote server returned an error: (500) Internal Server Error" exception. I have written the following code in VS.NET2005 using C# :
WebRequest wr = WebRequest.Create("http://www.ebizautos.com/search-cars/acura-cl-2.2-1997.html");
WebResponse wrs = wr.GetResponse();
Stream strm = wrs.GetResponseStream();
StreamReader SR = new StreamReader(strm);
string str = SR.ReadLine();
string input = "";
while (str != null)
{
input = input + str;
str = SR.ReadLine();
}
It is giving the exception on WebResponse wrs = wr.GetResponse(); statement.
This url is working fine otherwise on the browsers.
Can anybody please help me out to resolve this problem....
Thanks in advance!
Barnali