0

Is it necessary to allow anonymous access for a svc file when hosting WCF in IIS 7.5? If yes, then why is such an access needed?

LATEST UPDATE I found that svc doesn't need anonymous access. I think I was getting an error that seemed to be related to svc but wasn't. I am using the following security for the hosting website in IIS 7.5.

<security>
  <authentication>
    <anonymousAuthentication enabled="false" />
    <basicAuthentication enabled="true" /> 
    <windowsAuthentication enabled="true" />
  </authentication>
</security>
4

1 回答 1

0

感谢Voltagex,我找到了答案。在我最初的帖子中的最新更新下解释了这个答案。但是,我在这里也提到了它。

我发现 svc 不需要匿名访问。我想我遇到了一个似乎与 svc 相关但不是的错误。我在 IIS 7.5 中为托管网站使用以下安全性。SVC 访问与您为托管 WCF 的网站指定的安全性密切相关。就我而言,我对托管网站使用了以下安全性,我需要关闭匿名访问并只允许经过身份验证的用户访问托管网站文件资源,如 svc 文件。

<security>
 <authentication>
  <anonymousAuthentication enabled="false" />
  <basicAuthentication enabled="true" /> 
  <windowsAuthentication enabled="true" />
 </authentication>
</security>
于 2012-08-15T17:38:53.663 回答