Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. tag configuration in web.config error , please help me !!! [modified]

tag configuration in web.config error , please help me !!! [modified]

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netdatabasevisual-studio
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NguyenMinhCold
    wrote on last edited by
    #1

    I created a new ASP.Net website by Visual Studio 2005. Used language : C# Database: no use Then uploaded by menu "Public website" is get error: (I have delete symbol "<" in code for you view ...) ===================================================================== ===================================================================== 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 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". 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 configuration tag to point to a custom error page URL. configuration> system.web> system.web> configuration> code> ===================================================================== ===================================================================== Please help me about this error. Thank you very much !!! -- modified at 22:18 Sunday 15th April, 2007 NIIT

    C 1 Reply Last reply
    0
    • N NguyenMinhCold

      I created a new ASP.Net website by Visual Studio 2005. Used language : C# Database: no use Then uploaded by menu "Public website" is get error: (I have delete symbol "<" in code for you view ...) ===================================================================== ===================================================================== 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 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". 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 configuration tag to point to a custom error page URL. configuration> system.web> system.web> configuration> code> ===================================================================== ===================================================================== Please help me about this error. Thank you very much !!! -- modified at 22:18 Sunday 15th April, 2007 NIIT

      C Offline
      C Offline
      coolestCoder
      wrote on last edited by
      #2

      Hi NguyenMinhCold, There is some exception in your code behind. And the information states that to be able to view these kind of errors on remote machines need some changes in the web.config file. You can do one of the two things - 1. Try to access / repeat the same page from where you are publishing it (web server machine) without changing the web.config. This will enable you to view what exactly the error is. 2. Add customErrors mode="Off" tag in your web.config and see the error from the client machine. After that you can correct the error and restore the web.config if you have changed it on the server machine.


      "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


      coolestCoder

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups