开发者

Custom Errors in my Website

When I am Connecting a website through remote machine, The Website showing the run-time error

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

Notes: The c开发者_运维知识库urrent error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.

But i want to display entire site in my website, and one more thing i am using Ajax controls in website, they are CalenderExtender control.

Only Ajax Control tabs showing errors, remaining will be executed perfectly.

enter code here

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

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


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

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


You seem to have an exception somewhere, it may (or may not) be related to your configuration of the AJAX controls, and you need to correct this first. Check the event log on the server to see the exception details, or just configure your site to expose the details in the browser (which is suggested in the error message you're currently seeing.

You should have only a single <customErrors> tag in your web.config:

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

Set the mode to "off" if you want the site to display all the exception details. However, on production websites, it's generally recommended never to display these details to users.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜