The remote server returned an error: (500) Internal Server Error

Posted on 2006-06-03
Last Modified: 2008-02-01
i wrote a program by C# to community with a webpage.
i used HttpWebrequest to request to that page but program pop up an error: "The remote server returned an error: (500) Internal Server Error."
help me please.
Question by:tatamaruri
    LVL 9

    Accepted Solution

    500 just means an error occurred in your application and didn't return HTML. You need to debug your application to determine why it's not completing successfully.

    The easiest way is to comment out almost everything and that should make the 500 error go away, then start adding sections back in and see what breaks it.

    Author Comment

    how can I ignore this error ?
    LVL 9

    Expert Comment

    You can't ignore the error. You need to fix it.  Re-read my prev post on how to proceed, removing all code and verify the error no longer exists and then add code back in.

    Author Comment

    when that page have error, we can view code and see some code.
    all i want is get that code, so i must ignore that error and get code only.
    do you have any trick or tip to do that.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now