windows 10 (ASP.NET Visual Studio 2015) 中缺少 iis windows 身份验证 [英] iis windows authentication is missing at windows 10 (ASP.NET Visual Studio 2015)
问题描述
我正在尝试在 Visual Studio 2015 中运行一个在 IIS7 中使用 Windows 身份验证的 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 功能-> Internet 信息服务 -> 万维网服务 -> 安全
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 家庭版不包含 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%servicingPackagesMicrosoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~amd64~~10.0.16299.15.mum
dism /online /norestart /add-package:%SystemRoot%servicingPackagesMicrosoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~amd64~~10.0.16299.15.mum
- 上面的文件名可能会略有不同,因为它基于系统位数和版本
然后回到:
打开或关闭 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 (ASP.NET Visual Studio 2015) 中缺少 iis windows 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!