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

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.
tatamaruriAsked:
Who is Participating?
 
david_levineCommented:
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.
0
 
tatamaruriAuthor Commented:
how can I ignore this error ?
0
 
david_levineCommented:
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.
0
 
tatamaruriAuthor Commented:
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.
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.