locked
Error on Launch. RRS feed

  • Question

  • User1421620300 posted

    What is happening to my website after launching in Google Chrome. I have uninstalled and reinstalled chrome because my V.S. project was not showing in browser. My theory was that maybe their was some interaction from outside of visuals studio causing this.  I have not corrected issue yet, but the application is running a SSMS database and it uses Angular as a single page application. It initially has not compile time errors? Can someone explain to me what the following error entails! Markus

    HTTP Error 403.14 - Forbidden

    The Web server is configured to not list the contents of this directory.

    <fieldset>

    Most likely causes:

    • A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
    </fieldset>
    <fieldset>

    Things you can try:

    • If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
    • Enable directory browsing.
      1. Go to the IIS Express install directory.
      2. Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level.
      3. Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level.
    • Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
    </fieldset>
    <fieldset>

    Detailed Error Information:

    Module    DirectoryListingModule
    Notification    ExecuteRequestHandler
    Handler    StaticFile
    Error Code    0x00000000
    Requested URL    http://localhost:49600/
    Physical Path    V:\SOME APPS\MVC_Using_Angular\MVC_Using_Angular
    Logon Method    Anonymous
    Logon User    Anonymous
    </fieldset>
    Thursday, April 23, 2020 5:01 PM

Answers

  • User475983607 posted

    The 403.14 is a very common error and it means the URL does not have a default file like index.htm.   Most likely an issue with your angular application which we cannot see.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 23, 2020 5:18 PM
  • User-1330468790 posted

    Hi Markus33,

      

    There is a official solution for your case with the same symptoms.

    This problem occurs because the Web site does not have the Directory Browsing feature enabled, and the default document is not configured.

    I copied the steps for solving the problem as below and you could refer to the link at the end of the steps to find out more details.

      

    Method 1: Enable the Directory Browsing feature in IIS (Recommended)

    To resolve this problem, follow these steps:

    1. Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
    2. In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify.
    3. In the Features view, double-click Directory Browsing.
    4. In the Actions pane, click Enable.

    Method 2: Add a default document

    To resolve this problem, follow these steps:

    1. Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
    2. In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify.
    3. In the Features view, double-click Default Document.
    4. In the Actions pane, click Enable.
    5. In the File Name box, type the name of the default document, and then click OK.

    Method 3: Enable the Directory Browsing feature in IIS Express

    Note This method is for the web developers who experience the issue when they use IIS Express.

    To do this, follow these steps:

    1. Open a command prompt, and then go to the IIS Express folder on your computer. For example, go to the following folder in a command prompt:
      C:\Program Files\IIS Express 
    2. Type the following command, and then press Enter:
      appcmd set config /section:directoryBrowse /enabled:true

    The original link:

    "HTTP Error 403.14 - Forbidden" error when you open an IIS 7.0 Webpage

     

    Hope this can help you.

    Best regards,

    Sean

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 24, 2020 6:30 AM
  • User475983607 posted

    You copied an MVC/Angular project to the application root.   That's not the correct way to publish an MVC/Angular application.  Try publishing using Visual Studio.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 24, 2020 5:26 PM

All replies

  • User475983607 posted

    The 403.14 is a very common error and it means the URL does not have a default file like index.htm.   Most likely an issue with your angular application which we cannot see.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 23, 2020 5:18 PM
  • User-1330468790 posted

    Hi Markus33,

      

    There is a official solution for your case with the same symptoms.

    This problem occurs because the Web site does not have the Directory Browsing feature enabled, and the default document is not configured.

    I copied the steps for solving the problem as below and you could refer to the link at the end of the steps to find out more details.

      

    Method 1: Enable the Directory Browsing feature in IIS (Recommended)

    To resolve this problem, follow these steps:

    1. Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
    2. In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify.
    3. In the Features view, double-click Directory Browsing.
    4. In the Actions pane, click Enable.

    Method 2: Add a default document

    To resolve this problem, follow these steps:

    1. Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
    2. In IIS Manager, expand server name, expand Web sites, and then click the website that you want to modify.
    3. In the Features view, double-click Default Document.
    4. In the Actions pane, click Enable.
    5. In the File Name box, type the name of the default document, and then click OK.

    Method 3: Enable the Directory Browsing feature in IIS Express

    Note This method is for the web developers who experience the issue when they use IIS Express.

    To do this, follow these steps:

    1. Open a command prompt, and then go to the IIS Express folder on your computer. For example, go to the following folder in a command prompt:
      C:\Program Files\IIS Express 
    2. Type the following command, and then press Enter:
      appcmd set config /section:directoryBrowse /enabled:true

    The original link:

    "HTTP Error 403.14 - Forbidden" error when you open an IIS 7.0 Webpage

     

    Hope this can help you.

    Best regards,

    Sean

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 24, 2020 6:30 AM
  • User1421620300 posted

    Thanks for replying Gebhard, i have upload the project to GitHub. Can you take a look at it for me? Additionally the errors that i receive when trying to run the website now are below also. Thanks, Markus

    About:blank     Shows a blank browser

    Cannot connect to runtime process. ECONNREFUSED  Prompt message after running project in browser.

    https://github.com/Andrew112/MVC_Using_Angular.git

    Friday, April 24, 2020 2:05 PM
  • User1421620300 posted

    Sean how are you! I have followed your instruction to run website in IIS. I completed steps 1. and 3. but the website still does not run in browser. Maybe further clarification is needed! I have included the browser info that is returned when after browsing of website inside of IIS! Markus.

    localhost - /


     4/23/2020 10:23 AM        <dir> App_Data
    4/23/2020 10:35 AM <dir> App_Start
    4/23/2020 11:23 AM <dir> bin
    4/23/2020 10:35 AM <dir> Content
    4/23/2020 10:38 AM <dir> Controllers
    4/23/2020 10:35 AM <dir> fonts
    4/23/2020 10:35 AM 109 Global.asax
    4/23/2020 10:35 AM 599 Global.asax.cs
    4/23/2020 10:30 AM <dir> Models
    4/23/2020 11:46 AM 64768 MVC_Using_Angular.csproj
    4/23/2020 11:46 AM 2297 MVC_Using_Angular.csproj.user
    4/23/2020 10:56 AM <dir> MyScripts
    4/23/2020 10:21 AM <dir> obj
    4/23/2020 10:35 AM 1721 packages.config
    4/23/2020 10:21 AM <dir> Properties
    4/23/2020 10:35 AM <dir> Scripts
    4/23/2020 10:35 AM <dir> Views
    4/24/2020 10:22 AM 4299 Web.config
    4/23/2020 10:21 AM 1300 Web.Debug.config
    4/23/2020 10:21 AM 1361 Web.Release.config
    Friday, April 24, 2020 3:30 PM
  • User475983607 posted

    You copied an MVC/Angular project to the application root.   That's not the correct way to publish an MVC/Angular application.  Try publishing using Visual Studio.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 24, 2020 5:26 PM
  • User1421620300 posted

    Hello, Gebhard, is there any way that you can check out my repo on git hub. I surely want to know why this site does not launch properly! I have tried all but one of the above recommendations! Markus.

    https://github.com/Andrew112/MVC_Using_Angular.git

    Sunday, April 26, 2020 3:06 PM