Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am opening a page in IE browser and it works fine but when I open the same page using Web Browser control I get internal server error, any idea how can I solve this problem?
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 12-Oct-12 18:43pm    
Not enough information for comprehensive resolution; I just explained main ideas where you can start from.
--SA

1 solution

It's not IE browser problem, it's internal server error. Isn't that obvious that it has nothing to do with your application? You've sent some HTTP request, and the code at server part has chosen to reply with HTTP response with this status code presumably equal to 500:
http://www.checkupdown.com/status/E500.html[^].

If course, your HTTP request may be invalid, but if this is the same page without any parameters, there is not much you can do. One possibility is that this page can only be shown legitimately, because the server checks up HTTP referer:
http://en.wikipedia.org/wiki/HTTP_referer[^].

If this is the reason, you can try to send the same referer you would have with the Web browser. This is simply some page with the anchor: the user clicks on it, the request for new URI goes to the server part, and its code checks up the referer is it's the same as the URI of your previous page or not, to prevent access "from outside". You can simply repeat all steps you had with available Web browser to reach that page.

This is just speculation — it can be something else. You did not provide any information or link to further analyze it.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900