ASP.NET Intranet 站点要求提供凭据 - Windows 身份验证
我在 ASP.Net 中创建了我的第一个网站,并且正在尝试在工作中的内部网上启动并运行它。我现在几乎已经完成了所有事情,但我遇到了障碍。
我需要使用 Windows 身份验证(我的团队的要求),因此我完成了设置网站的过程。我已配置所有内容并尝试访问该站点(非本地主机)并收到一个对话框,要求我提供登录凭据。我一生都无法弄清楚为什么会这样。我已确保 IE8 设置为传递凭据,我已确保在 web.config 文件和服务器上设置 Windows 身份验证。一旦我输入我的 Windows 登录信息,我就可以毫无问题地进入该网站。
当我最初设置页面时,我选择了直通身份验证并测试了连接。在那次测试期间,我收到一条错误消息,指出无法验证对网站路径的访问。这是我唯一的猜测,但无法找到解决办法。
我预先感谢您的帮助,并很乐意在看到问题后立即回答。再说一遍,我只是想避免弹出该对话框。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将站点添加到 IE 中的受信任站点。
Add the site to your trusted sites in IE.
您需要确保站点(以及 IIS 中)设置了“集成 Windows 身份验证”,否则它将不会获取他们的登录凭据并通过。
http://technet.microsoft.com/en-us/库/cc754628(WS.10).aspx
http://codesnip.net/iis7-integrated-windows-authentication-win-2008
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