When I am running my application,I am getting this error.(Server Error in '/' Application Object reference not set to an instance of an object).I don't know why I am getting this error. I searched on the net, people are saying to off customerror in webconfig. Does it right way to find out it?
You are going to need more information than just this to resolve this error.
This article shows how to show the full error messages:
This will then show you the full error you are getting.
<customErrors mode="Off" />