windows authentication issue on server but not fro

2019-08-06 10:43发布

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条回答
Root(大扎)
2楼-- · 2019-08-06 11:24

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

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

查看更多
登录 后发表回答