我可以在WebMatrix Beta 2中设置Windows身份验证吗?

Mik*_*ner 2 asp.net windows-authentication webmatrix

我有一个ASP.NET站点,其中身份验证模式="Windows".刚刚下载了WebMatrix beta 2,试图调试我的应用程序.

在WebMatrix中,我在Visual Studio中按F5后出现401错误.同样在VS中,"无法在Web服务器上启动调试.在与Web服务器通信时发生了身份验证错误." 当我单击帮助按钮时,MSDN告诉我需要启用Windows身份验证.

我没有看到WebMatrix中的身份验证选项.这个问题很相似,但似乎并不适用于我(也没有回答).

更多信息(不确定是否适用).我在WebMatrix中启用了SSL.VS设置为使用URL为https:// localhost:44300/routing/development.aspx的自定义Web服务器.在WebMatrix中,请求视图中的URL是https:// localhost:44300/routing/development.aspx/debugattach.aspx(不确定debugattach.aspx来自哪里).

Mik*_*ner 5

我想我找到了答案.看起来Beta 2(我没有使用Beta 1)有很多无法通过UI访问的选项.

在%My Documents%\ IISExpress\config\applicationhost.config中,第349行是

<windowsAuthentication enabled="false">
Run Code Online (Sandbox Code Playgroud)

将"false"改为"true"对我有用.