Re: HttpWeb Request from Class Library fails to 500
- From: Joerg Jooss <news-reply@xxxxxxxxxxxxx>
- Date: Thu, 05 Jan 2006 14:38:57 -0800
Hello SevDer,
Hi I have a class library that needs to download the HTML in a specific page of ours with provided querystring. When I open this URL with any browser, it loads fine. When I do WebRequest from Web Project it is again fine. However whenever I do this request from this class library, it fails. I put every kind of user permission to the actual folder, and through inetmgr. Right now everyone has full control. But still I got the problem. Code is as follows: ********************************************************************** ************ HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(theFullUrl); myRequest .UserAgent = "Fareportal .NET Request 1.1"; HttpWebResponse myResponse = (HttpWebResponse)myRequest .GetResponse(); IIS Log is as follows: ********************************************************************** ************ 2006-01-05 21:14:39 W3SVC1 AHMET-IPC 192.168.0.163 GET /sevket3/Default.aspx tabid=1076&guid=cd709879-6680-4cf7-bb98-2bb85b003f7d 80 - 192.168.0.163 HTTP/1.1 Fareportal+.NET+Request+1.1 - 192.168.0.163 500 0 0 Exception is as follows: ********************************************************************** ************ System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.HttpWebRequest.GetResponse()
It's a server-side error -- your ASP.NET app breaks. You should debug that page.
Cheers, --
Joerg Jooss
news-reply@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: HttpWeb Request from Class Library fails to 500
- From: Steven Cheng[MSFT]
- Re: HttpWeb Request from Class Library fails to 500
- References:
- HttpWeb Request from Class Library fails to 500
- From: SevDer
- HttpWeb Request from Class Library fails to 500
- Prev by Date: Re: Timer control
- Next by Date: Re: asynchronous file upload
- Previous by thread: HttpWeb Request from Class Library fails to 500
- Next by thread: Re: HttpWeb Request from Class Library fails to 500
- Index(es):
Relevant Pages
|