locked
ASP.NET 2005 RRS feed

  • Question

  • Hi This is Web.Config file  of ASP.net 2005

    Now Here focus on Bold Content .......

     

     

     

    <?xml

    version="1.0"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config.comments usually located in
        \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration>
        <appSettings/>
        <connectionStrings/>
        <system.web>
            <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.

                Visual Basic options:
                Set strict="true" to disallow all data type conversions
                where data loss can occur.
                Set explicit="true" to force declaration of all variables.
            -->
            <compilation debug="false" strict="false" explicit="true" />
            <pages>
                <namespaces>
                    <clear />
                    <add namespace="System" />
                    <add namespace="System.Collections" />
                    <add namespace="System.Collections.Specialized" />
                    <add namespace="System.Configuration" />
                    <add namespace="System.Text" />
                    <add namespace="System.Text.RegularExpressions" />
                    <add namespace="System.Web" />
                    <add namespace="System.Web.Caching" />
                    <add namespace="System.Web.SessionState" />
                    <add namespace="System.Web.Security" />
                    <add namespace="System.Web.Profile" />
                    <add namespace="System.Web.UI" />
                    <add namespace="System.Web.UI.WebControls" />
                    <add namespace="System.Web.UI.WebControls.WebParts" />
                    <add namespace="System.Web.UI.HtmlControls" />
                </namespaces>
            </pages>
            <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
            <authentication mode="Windows" />
           
            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
             
            </customErrors>
           
        </system.web>
    </configuration>

     

     

    I have problem that how can i know that statusCode="anycode"  is stand for particular error !!!

     

     

    Tuesday, April 1, 2008 1:52 PM

Answers

  • Hello Nishitengg, each status code stands for some particular type of error.
    Here is a list of status codes with their description......

    Status-Code     Group Description
    1xx                  Informational: Request received, continuing to process.
    2xx                  Success: The action was successfully received, understood, and accepted.
    3xx                  Redirect Command: Further action must be taken in order to complete the request.
    4xx                  Client Error: The request has a syntax error or the server does not know how to fulfill the request.
    5xx                  Server Error: The server failed to fulfill a request that appears to be valid.


    Hope it will help you
    Ska
    (pls mark the post as answer if it helps you)
    Tuesday, April 1, 2008 2:54 PM
  • For more detailed info here are some common status-codes and their reason......


    Status-Code       Reason
    100                    Continue
    200                    OK
    201                    Created
    300                    Multiple Choices
    301                    Moved Permanently
    302                    Found
    400                    Bad Request
    401                    Unauthorized
    403                    Forbidden
    404                    Not Found
    407                    Proxy Authentication Required
    408                    Request Time-out
    413                    Request Entity Too Large
    500                    Internal Server Error
    501                    Not Implemented


    With Regards
    Ska
    Tuesday, April 1, 2008 2:58 PM

All replies

  • Hello Nishitengg, each status code stands for some particular type of error.
    Here is a list of status codes with their description......

    Status-Code     Group Description
    1xx                  Informational: Request received, continuing to process.
    2xx                  Success: The action was successfully received, understood, and accepted.
    3xx                  Redirect Command: Further action must be taken in order to complete the request.
    4xx                  Client Error: The request has a syntax error or the server does not know how to fulfill the request.
    5xx                  Server Error: The server failed to fulfill a request that appears to be valid.


    Hope it will help you
    Ska
    (pls mark the post as answer if it helps you)
    Tuesday, April 1, 2008 2:54 PM
  • For more detailed info here are some common status-codes and their reason......


    Status-Code       Reason
    100                    Continue
    200                    OK
    201                    Created
    300                    Multiple Choices
    301                    Moved Permanently
    302                    Found
    400                    Bad Request
    401                    Unauthorized
    403                    Forbidden
    404                    Not Found
    407                    Proxy Authentication Required
    408                    Request Time-out
    413                    Request Entity Too Large
    500                    Internal Server Error
    501                    Not Implemented


    With Regards
    Ska
    Tuesday, April 1, 2008 2:58 PM