Results 1 to 4 of 4

Thread: IIS vs ASPX Error

  1. #1

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446

    IIS vs ASPX Error

    when i am running my aspx page the server is not showing any errors. What could be the reason. simply it is displaying as follows. But i have some errors in my page. when i ran it in anothere iis server it has displayed line number ..etc .. Why?

    Code:
    Server Error in '/DotNet' 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>
    What is the Problem...? Do i make any changes in IIs..?
    prasad

  2. #2
    Junior Member
    Join Date
    Jun 2002
    Location
    Chicago
    Posts
    30
    Hi,

    Your problem is related to the settings you have in web.config for custom errors - custom errors are used to replace the standard error message with a custom page or with nothing you must have custom errors on or you might be on a remote machine with custom errors on remote only

    you have three choices:

    customerrors=on
    cusotmerrors=off
    cusotmerrors=remote only

    set custom errors to off to see all errors everywhere:

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



    - Dave

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    the messsage tells you what to do to see the errors.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    Well, I am sorry for bringing this one up.

    I am facing the EXACT same problem, when I upload my test page on a webserver. The customErrors mode="Off" does not change anything, and it still gives me the same error msg as given by buddu in the first post.

    However, all the pages work well on my local machine with no errors.

    Any pointers?

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width