Windows 10中缺少iis windows身份验证(ASP.NET Visual Studio 2015) [英] iis windows authentication is missing at windows 10 (ASP.NET Visual Studio 2015)
问题描述
我正在尝试在IIS7中使用Windows身份验证的Visual Studio 2015中运行asp .net网站。虽然我在我的电脑上安装了IIS,但试图从
I am trying to run an asp .net website in Visual Studio 2015 that is using windows authentication in IIS7. Although I installed IIS in my PC, while trying to add "windows authentication" from
控制面板 - >打开或关闭Windows功能 - >互联网信息
服务 - >万维网服务 - >安全性
Control Panel-> Turn Windows features on or off-> Internet Information Services -> World Wide Web Services -> Security
似乎列表中缺少此功能。
it seems that this feature is missing from the list.
看看图片。
我通过Windows身份验证运行项目还有哪些其他选项?
What other options do I have in order to run the project via windows authentication?
推荐答案
Windows 10 Home Edition不包含Windows身份验证(以及许多其他IIS安全功能)。但是,具有这些功能的软件包就位于您的操作系统中,您可以手动安装它。
Windows 10 Home edition doesn't include Windows Authentication (and a bunch of other IIS security features). However, the package with these features is sitting right there in your OS and you can manually install it.
您需要做的就是打开一个提升的命令提示符并运行:
All you need to do is open an elevated command prompt and run:
dism / online / norestart / add-package:%SystemRoot%\servicing\Packages\Microsoft-Windows-IIS-WebServer -AddOn-2-Package~31bf3856ad364e35~amd64 ~~ 10.0.16299.15.mum
dism /online /norestart /add-package:%SystemRoot%\servicing\Packages\Microsoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~amd64~~10.0.16299.15.mum
- 上面的文件名可能略有不同,因为它基于系统位数和版本
- Filename above may be slightly different since it's based on system bitness and version
然后回到:
打开或关闭Windows功能> Internet信息服务>万维网服务>安全性
Turn Windows features on or off > Internet Information Services > World Wide Web Services > Security
安全下的所有专业选项都可用。只需选中Windows身份验证并重新启动。
All the "pro" options under Security will be available. Simply check "Windows Authentication" and reboot.
这篇关于Windows 10中缺少iis windows身份验证(ASP.NET Visual Studio 2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!