Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I got error like this when i click on my database connection page.
other page working fine while on local host its working properly.
XML
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 -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


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 -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>




Thanks & Regards
Umesh Daiya
Posted
Comments
Ch Smrutiranjan 4-Nov-14 2:27am    
Check for your connection string and the credentials written there. Try to connect directly through SSMS with the credentials.I think there is the error lies.Let me know your response.

Replace this
XML
<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>



to

XML
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>



it should work
 
Share this answer
 
Comments
UDTWS 4-Nov-14 3:14am    
Thanks for reply but still i got same error
The error message is enough for telling the main reason that caused this trouble for you. This is a denial report for you request. You wanted to view the details for your website, which is denied by the server. You can go to your hosting providers Control Panel and look for settings for viewing the application errors. Or just set this,

<configuration>
    <system.web>
        <!-- Set the customErrors to be viewed on the remote connections. -->
        <customerrors mode="RemoteOnly" />
    </system.web>
</configuration>


This would let you see the errors on the remote connections. You can furthermore ask such questions on Offical IIS Forums.
 
Share this answer
 
v2
try this

XML
<system.web>
    <customErrors mode="Off"/>
    <compilation debug="true"/>
    <authentication mode="None"/>
  </system.web>
</configuration>
 
Share this answer
 

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