Click here to Skip to main content
14,324,982 members
Rate this:
Please Sign up or sign in to vote.
See more:
Actually I hosted the website,
Its working offline properly but after hosting in all Pages of registration in which we include data to database is not working, but data is fetched from the database.
On registration page On clicking submit button my error is:

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

        <customerrors mode="Off" />

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

        <customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm" />

My website is
Please help me out solve this problem.
Updated 10-May-12 19:07pm
Sandeep Mewara 11-May-12 1:28am
Set your customerrors in web.config file OFF and then share the actual error that you are getting.

Based on information shared right now, we cannot comment on any reason.
Rate this:
Please Sign up or sign in to vote.

Solution 1

I think there is some issue with your database connectivity...
Please use exception handling in your onclick and print that exception to a label.
Then you will be able to solve this issue, else post your exact error message here...

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

Solution 2

in web.config file, paste below code after

        <customerrors mode="off" />

make it answer and rate, if you got your answer..


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