求助:如何ASP.NET开发服务器上启用Windows身份验证? [英] Help: How to enable Windows Authentication on ASP.NET Development Server?

查看:307
本文介绍了求助:如何ASP.NET开发服务器上启用Windows身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望所有你们都知道如何解决我们有这个问题。

I hope any of you guys knows how to fix this issue we are having.

我们正试图通过网络来​​托管WCF服务。我们设置web.config中有服务要求Windows身份验证。我们遇到的问题是:

We are trying to host a WCF service via the web. We set the web.config to have the service require windows authentication. The problem we are having is the following:

当我们在常规的IIS主机我们的服务,该服务运行良好,并没有与Windows身份验证模式没有问题。然而,当我们试图从我们的开发者盒,我们得到以下错误运行它:这项服务的安全设置需要Windows身份验证,但没有为承载此服务的IIS应用程序启用

When we host our service in a regular IIS, the service runs fine and there is no issues with the "Windows Authentication" mode. However, when we try to run it from our developer boxes we get the following error: "Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service."

我们的开发商框不会通过普通IIS而是通过Visual Studio的开发APS.NET服务器托管服务。我们试图进入网络项目属性,说要启用NTLM身份验证,但仍然没有解决它。有谁知道如何解决它?难道VS ASP.NET开发服务器甚至支持Windows身份验证?是举办使用Windows身份验证服务的唯一选择是使用IIS,忘了ASP.NET开发服务器?

Our developers boxes are not hosting the service through the regular IIS but rather through Visual Studio's APS.NET Development Server. We tried going into the web project properties and said to enable NTLM authentication but that still did not fix it. Does anyone know how to fix it? Does VS ASP.NET Development Server even support Windows Authentication? Is the only option for hosting the service with Windows Authentication is to use IIS and forget about ASP.NET Development Server?

谢谢
查克

推荐答案

为了配置IIS防爆preSS安全设置:

In order to configure IIS Express security settings:


  1. 查找在任务栏(系统盘)的IIS前preSS符号。

  2. 右键单击并选择所有应用。

  3. 单击您要更改站点的名称(虽然我相信改变是网站宽)

  4. 单击下面的配置部分的道路上(它会打开ApplicationHost.config文件)

  5. 搜索验证部分并进行更改

例的变化可以在这里找到:

Example changes can be found here:

<一个href=\"http://toad$c$c.blogspot.ca/2011/08/security-config-in-iis-ex$p$pss.html\">http://toad$c$c.blogspot.ca/2011/08/security-config-in-iis-ex$p$pss.html

这篇关于求助:如何ASP.NET开发服务器上启用Windows身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆