windows authentication issue on server but not from local pc

淺唱寂寞╮ 提交于 2019-12-11 11:00:06

问题


I have my c# asp.net web application set up for windows authentication.

<authorization>
    <deny users="?" /> <!-- Denies access to the anonymous user. -->
        </authorization>

I have 2 issues.

Firstly, if I navigate to my site from my local PC, I get asked for a username/password to which I enter the credentials I use to log on to the server and these are successful and I gain access. However if I navigate to the site on the server via the internet browser, I get asked for the credentials to which I supply same - but it never lets me access, keep getting pop up to re enter my credentials. Any ideas why this might be so? Do I have incorrect configuration?

Secondly, is it possible to set up windows authentication when access the site from my local PC asking for username/password, but when accessing it on the server, I am not asked for such and can access the site without providing any details?


回答1:


Have you selected "Integrated Windows Authentication" in the IIS for your web site?

What mode you have for the authentication in your web.config?



来源:https://stackoverflow.com/questions/7394713/windows-authentication-issue-on-server-but-not-from-local-pc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!