locked
I am getting an error when i tried to deploy a ASP.NET web application on IIS server on windows 8 RRS feed

  • Question

  • User-269412850 posted

    Hello Nation ,

    I have developed an ASP.NET web application with database (LINQ) ,its working perfect in when i run from the visual studio 2010 .Now i am trying to host it in office intranet using IIS web server .I host the asp.net application like by clicking SITE->DEFAULT WEB SITE(rightclick)->ADD APPLICATION (i give the alias name and select the published folder of asp.net application)->ok.

    Then i tried to open the hosted asp.net by right clicking the MANAGE APPLICATION ->BROWSE 

    but i am getting an error like this.

    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.

    <fieldset>

    Detailed Error Information:

    Module    IIS Web Core
    Notification    BeginRequest
    Handler    Not yet determined
    Error Code    0x80070021
    Config Error    This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
    Config File    \\?\C:\inetpub\wwwroot\test_publish\web.config
    Requested URL    http://localhost:80/chek
    Physical Path    C:\inetpub\wwwroot\test_publish
    Logon Method    Not yet determined
    Logon User    Not yet determined
    </fieldset>
    <fieldset>

    Config Source:

     42: <system.webServer>  43: <modules runAllManagedModulesForAllRequests="true" /> 44: <directoryBrowse enabled="true" /> 
    </fieldset>
    <fieldset>

    More Information:

    This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

    View more information »

    </fieldset>

    How to solve this please help...

    thanks in advance .

    Friday, November 15, 2013 5:00 AM

Answers

  • User-837620913 posted

    From this blog post on troubleshooting this error:

    This usually indicates that ASP.NET is either not installed or has corrupted/incomplete installation because installation of asp.net unlocks that section. Hence if this is the case, one should install asp.net feature from Server Manager (Under Web Server Role in Windows Server 2008 and in Program Features-> Application server in Vista/Windows7). This KB929772 talks about the ASP.NET installation failure reason.

    To ensure that IIS and ASP.NET are installed correctly, try these steps:

    1. Click "Start button"
    2. In the search box, enter "Turn windows features on or off"
    3. In the features window, Click: "Internet Information Services"
    4. Click: "World Wide Web Services"
    5. Click: "Application Development Features"
    6. Check all the features except CGI to enable them.

    If that doesn't work try the Web Platform Installer: http://www.microsoft.com/web/downloads/platform.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 15, 2013 5:36 AM
  • User-1454326058 posted

    Hi mhdnaveen,

    Thanks for your post!

    mhdnaveen

    How publish this asp.net application in intranet

    After you publish the application in the IIS, then others can access it via intranet by IP, such as http://10.168.196.37/MVC4

    There is a link that may benefit you:

    #Create a Web Site

    http://technet.microsoft.com/en-us/library/cc772350(v=ws.10).aspx

    Thanks

    Best Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 18, 2013 3:29 AM

All replies

  • User-837620913 posted

    From this blog post on troubleshooting this error:

    This usually indicates that ASP.NET is either not installed or has corrupted/incomplete installation because installation of asp.net unlocks that section. Hence if this is the case, one should install asp.net feature from Server Manager (Under Web Server Role in Windows Server 2008 and in Program Features-> Application server in Vista/Windows7). This KB929772 talks about the ASP.NET installation failure reason.

    To ensure that IIS and ASP.NET are installed correctly, try these steps:

    1. Click "Start button"
    2. In the search box, enter "Turn windows features on or off"
    3. In the features window, Click: "Internet Information Services"
    4. Click: "World Wide Web Services"
    5. Click: "Application Development Features"
    6. Check all the features except CGI to enable them.

    If that doesn't work try the Web Platform Installer: http://www.microsoft.com/web/downloads/platform.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 15, 2013 5:36 AM
  • User-269412850 posted

    Thank you so much sir.

    But i can only view in my computer .How publish this asp.net application in intranet .

    Friday, November 15, 2013 6:16 AM
  • User-1454326058 posted

    Hi mhdnaveen,

    Thanks for your post!

    mhdnaveen

    How publish this asp.net application in intranet

    After you publish the application in the IIS, then others can access it via intranet by IP, such as http://10.168.196.37/MVC4

    There is a link that may benefit you:

    #Create a Web Site

    http://technet.microsoft.com/en-us/library/cc772350(v=ws.10).aspx

    Thanks

    Best Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 18, 2013 3:29 AM