Click here to Skip to main content
14,303,217 members
Rate this:
Please Sign up or sign in to vote.
See more:
Dear All,

My Application is developed by MVC3(Razor) framework.Oracle is running in the back end.When i host the site on win 2008 server its not running.i checked all things like DB Connection and so on everything is fine.But same site same package when i host on win 2003 server it's running smoothly.

So that i bulid very small site(only two page) by MVC3(Razor) and uploaded on win 2008 server. it's running good. Can u tell me plz whta's wrong with this application. I made application pool (supports) 32 bit true.
Last one week i facing the same problem. i can't solve it.

plz give me any idea.

error (I know its general error): HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.

Thanks in Advance.
Posted
Comments
Sergey Alexandrovich Kryukov 11-Jul-12 13:03pm
   
Not enough information; isn't this obvious?
--SA

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

This is good that you know that this is a general error. I appreciate this understanding. But if you understand this, you should understand that in this case you can get only the general answer. Something like this:
S A Kryukov would write:
The IIS7 HTTP server could encounter an error caused by your MVC3 application. You need to fix an internal error in your application.

I understand, it's not very informative, but this is all one can possibly see from the information you provided.

So, the major problem here is that you need to retrieve relevant information on the problem. So, very general advice:

Catch all exceptions in the top of the stack of every thread and output comprehensive exception information, including Exception.Stack and all Exception.InnnerException, recursively. Of course, you should make sure that you do not block exception propagation in between; this is a big mistake many beginners do; the best exception handling, as a rule of thumb, is not catching any exceptions except on top of the stack; another place is the main event loop of the UI.

Please see my past answers on exception handling for more ideas:
How do i make a loop that will stop when a scrollbar reaches the bottom[^],
When i run an application an exception is caught how to handle this?[^],
throw . .then ... rethrowing[^],
Error Logging and Screen Shot.[^],
Catching an Exception[^],
Handling exceptions in class library (dll)[^].

Add logging to check up if the code passes all points of your application logic. Please see this past answer:
User Log should be Maintained in Web Application[^].

—SA
   
Comments
khosnur 11-Jul-12 13:32pm
   
Dear Kryukov thanks for your reply. Yes i thought so may be issue is in my application.
Sergey Alexandrovich Kryukov 11-Jul-12 14:16pm
   
You are welcome. I had no doubt you understood that. I've written about it to emphasize that you need to collect relevant information on the problem, tried to suggest how.
--SA

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100