ASP.NET intranet site asking for credentials - Windows Authentication

笑着哭i 提交于 2019-12-10 14:01:12

问题


I created my first website in ASP.Net and I am trying to get it up and running on our intranet here at work. I have got almost everything completed now, and I have come to a roadblock.

I need to use Windows Authentication - requirement from my team - so I went through the process of setting up the site. I have everything configured and attempted to access the site (non-localhost) and got a dialog box asking for my login credentials. I cannot figure out for the life of me why that is. I have made sure that IE8 is set to pass credentials, I have ensured that Windows Auth is set up in both my web.config file and on the server. as soon as i enter my windows login information, i get into the site without issue.

When i initially set up the page, I selected pass-through authentication and tested the connection. During that test, i got an error back saying that access to the path of the website could not be verified. This is my only guess, but unable to figure out a fix for it.

I thank you in advance for your help and am happy to answer any questions as soon as I see them posted. Again, I am just trying to get around having that dialog box pop up.


回答1:


Add the site to your trusted sites in IE.




回答2:


You need to make sure that "Integrated Windows Authentication" is setup on the site (and in IIS), other wise it won't take their login credentials and pass through.

http://technet.microsoft.com/en-us/library/cc754628(WS.10).aspx

http://codesnip.net/iis7-integrated-windows-authentication-win-2008



来源:https://stackoverflow.com/questions/9232546/asp-net-intranet-site-asking-for-credentials-windows-authentication

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