简体   繁体   中英

Credentials popup when debugging in VS 2017 IIS Express

I have an VS (2017) Web Application project. The project complies and runs correctly etc.

The problem I have is when I press the debug button and it starts debugging using IIS Express in Edge, I am always presented with a popup to provide credentials before the page is shown. The page is loaded correctly once the credentials are provided, but I have to do it each time and it can become annoying.

Anonymous access is disabled and Windows Authentication is enabled in the Project Properties. I a have tried running VS in adminstrator mode but no luck.

How do I not have the credentials box appear?

set the hostname which you are using in the iis site binding to the visual studio project.

1)Open the project which you are using to attach the worker process for debugging.

2)Right-click on the project -> select properties

you will see that there are 3 options for executing your application. IIS Express, Local IIS or External Host.

You can now use Local IIS like the configuration below.

在此处输入图像描述

A second option, that is if you are using like me a custom hostname, is to select External Host.

在此处输入图像描述

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