HttpWeb Request from Class Library fails to 500
- From: "SevDer" <sevder@xxxxxxxxxxxxxxxx>
- Date: Thu, 5 Jan 2006 16:25:36 -0500
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()
Platform:
ASP.NET 1.1
Win 2K3
I also have .NET 2.0 on this machine but this app is on 1.1
--
Thanks in advance,
SevDer
http://www.sevder.com
.
- Follow-Ups:
- Re: HttpWeb Request from Class Library fails to 500
- From: Joerg Jooss
- Re: HttpWeb Request from Class Library fails to 500
- Prev by Date: Re: possible java script question
- Next by Date: Re: Password Field
- Previous by thread: call functions by pointer?
- Next by thread: Re: HttpWeb Request from Class Library fails to 500
- Index(es):
Relevant Pages
|
Loading