Re: HttpWeb Request from Class Library fails to 500



Hi SevDer,

I agree with Joerg , since the IIS server has received the request, it is
likely something at serverside (asp.net page) or our code logic cause the
problem. I've ever met some similiar problem which is caused by the user
agent not set correctly. Have you tried using the IE explorer's userAgent
string to see whether it works? Also, if convenient, I suggest you provide
some further detailed info on the asp.net page you request...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




--------------------
| Message-ID: <94fc5071796f8c7e0685b5256ec@xxxxxxxxxxxxxxxxxxxx>
| From: Joerg Jooss <news-reply@xxxxxxxxxxxxx>
| Subject: Re: HttpWeb Request from Class Library fails to 500
| References: <#fcFX6jEGHA.2072@xxxxxxxxxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| Content-Type: text/plain; charset=_autodetect_all; format=flowed
| X-Newsreader: JetBrains Omea Reader 671.6
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Date: Thu, 05 Jan 2006 14:38:57 -0800
| NNTP-Posting-Host: p549616F2.dip0.t-ipconnect.de 84.150.22.242
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:368915
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| 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

|
|

.



Relevant Pages

  • [REVS] NTLM HTTP Authentication is Insecure By Design
    ... in front of a web server, and that proxy server shares a single TCP ... These are attacks that make use of non-RFC HTTP requests (HTTP Request ... the authentication is associated with the ...
    (Securiteam)
  • [NT] 04WebServer Multiple Vulnerabilities (CSS, Log File Injection, AUX DoS)
    ... 04WebServer is a HTTP server developed by Soft3304 for Windows platforms. ... Characters into Log File ... filtering on the request URL before writing it into the log file. ... following HTTP request, when submitted to a vulnerable 04WebServer, will ...
    (Securiteam)
  • Re: breaking the model
    ... > The forms data then is in the Request object. ... HTTP Request; in this case, the form POST Request from the Page. ... client and server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Error creating PowerPoint.Application object
    ... I'm currently looking at this VB.NET code running on my IIS server which ... server, run a macro and close the PPT. ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via, ...
    (microsoft.public.dotnet.framework.interop)
  • Re: IIS Problem ...
    ... Request will be rejected. ... processed by a typical IIS server. ... content to an IIS server via WebDAV. ... Maps to webhits.dll, part of Index Server ...
    (microsoft.public.dotnet.general)

Loading