简体   繁体   English

具有匿名身份验证的IIS站点和具有基本身份验证的WCF服务可以在同一域中吗?

[英]IIS Site with Anonymous authentication and WCF service in the same domain with Basic authentication is it possible?

I am having a Site in IIS and I have a WCF service which is hosted within this site. 我在IIS中有一个站点,并且该站点中托管有WCF服务。 I want the site to have a anonymous authentication and Service to have basic authentication. 我希望该站点具有匿名身份验证,而服务具有基本身份验证。 I tried but when I am giving the user name and password it is not redirecting anywhere and still asking for it. 我试过了,但是当我输入用户名和密码时,它并没有重定向到任何地方并且仍然在要求输入。 Is anyone faced the same kind of problem? 有没有人遇到过同样的问题?

So, after lot of struggles i finally found the problem. 因此,经过很多努力,我终于找到了问题所在。

<authentication mode="None">
  <forms name=".ASPXAUTH" cookieless="UseCookies"/>
</authentication>

Authentication mode was set to None the moment i changes to Windows i am able to go login it opens the service. 当我更改为Windows时,身份验证模式设置为“无”,因此我能够登录并打开服务。

Thanks for the support. 感谢您的支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM