HttpWeb Request from Class Library fails to 500



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



.



Relevant Pages

  • Re: OE Problems STILL!
    ... your firewall off. ... > Server Error: 441, Error Number: 0x800CCCA9 ... > download another version I can't. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Error with Backup
    ... Thanks Merv, i will take a look and report back. ... Help with Resolution for MS 827929 (Server Error in '/' Application) ... An error occurred during the processing of a configuration file required to service this request. ... Attempting download of new URL ...
    (microsoft.public.windows.server.sbs)
  • Re: OE Problems STILL!
    ... Server Error: 441, Error Number: 0x800CCCA9 ... when I tried to post a picture to alt.binaries.pictures.fishing, of my favorite troute ... download another version I can't. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Web site busted?
    ... handy. ... the download page for RC1 is generating a 404 at the moment when I click on the 'download' link: ... The link on the referring page seems to be wrong or outdated. ... If you think this is a server error, ...
    (alt.os.linux.suse)
  • Basic python help
    ... python script, however, I am getting a weird server error: ... This is my HTML: ... Internal Server Error ...
    (comp.lang.python)

Loading