简体   繁体   中英

IIS does not run the project in Visual Studio 2017

IIS does not work in Visual Studio when all IIS installation is done. I may have made a mistake in one place but I do not know where it is.

I will explain all the steps I have made. If you have the idea or have already received the error, if you know the solution, please share

1 Step : Installing / activating IIS

Picture Language : Turkish

IIS Install - Windows10

2. Step : Verifying the operation of the localhost

Localhost okay

I can see that IIS is working when I write localhost on the urll part of the browser

3. Step : Adding project employee application to ISS - CREATE VIRTUAL DIRECTORY That's all I've done. But I also get an error adding the project to IIS. I got the error screen below visual

application error

Problem solved. The problem is caused by the windows services. There was an error in the system files in Visual Studio. I reinstalled the Windows 10 Operating System and Visual Studio 2017. Problem solved. The problem is caused by the Windows 10 operating system files.

Thank you so much.

As the mentioned screenshot error is Http Status Code 403.14 which means :

Server Error in Application "application name" HTTP Error 403.14 - Forbidden HRESULT: 0x00000000 Description of HRESULT : The Web server is configured to not list the contents of this directory.

https://support.microsoft.com/en-ca/help/942062/http-error-403-14-forbidden-error-when-you-open-an-iis-7-0-webpage

You are trying to browse the virtual directory not opening a page. To Enable Browsing you can :

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.

Or Open Page Name as : Localhost/MyPage.aspx Or Correct Route if MVC : http://localhost:12344/Home/ Here is Another Way to Do from Web.config

<system.webServer>
    <directoryBrowse enabled="true" />
</system.webServer>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM