IIS 6 Windows 身份验证和.Net 4.0 网站
我无法通过 Windows 身份验证获取 .Net 4 网站 我正在运行 IIS 6.0 和 .Net 4.0 网站,
如果我设置基本身份验证,它就会验证并工作。
注意应用程序和网站之间的区别,网站无法运行,但应用程序可以运行
如果我将默认网站设置为在同一位置有应用程序,则
如果我将网站设置为windows auth 会提示我输入用户名密码,失败3次然后说未经授权。它不会锁定我的帐户
我已在 Web 服务器扩展上启用了 .Net 4。 我已经运行了 aspnet_regiis.exe,
我已将其设置为自己的应用程序池,这是一个与可用的应用程序(而不是网站)共享的应用程序池。要使用仅在网站上运行的应用程序池
,我已将 asp.Net 版本设置为 4。
我查看了网络服务器日志,它有此
2011-07-11 04:10:17 W3SVC1459592338 172.XX.XX.XX GET / - 123 - 172.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 2 2148074254
2011-07-11 04:10:23 W3SVC1459592338 172.XX.XX.XX GET / - 123 - 172.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 1 0
2011-07-11 04:10:23 W3SVC1459592338 172.XX.XX.XX GET / - 123 - 172.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 1 0
事件日志,这
对任何 iedas 都没有帮助? ?
I cant get a .Net 4 website to windows auth
I'm running IIS 6.0 with a .Net 4.0 website
If I set Basic auth it validates and works.
Note the difference between an application and a website, the website does not work, but the application does
If I set the default website to have an application to the same place windows auth works
if I set the website to windows auth it will prompt for my username password, and fail 3 time and then say unauthorised. It does not lock my account
I have enabled .Net 4 on teh web server extensions.
I have run aspnet_regiis.exe
I have set it to its own app pool, a shared app pool with the application (not website) that works. To use the app pool that worked on the apllication to be solely on the website
I've set the asp.Net version to be 4.
I've looked in the webserver logs and it has this
2011-07-11 04:10:17 W3SVC1459592338 172.XX.XX.XX GET / - 123 - 172.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 2 2148074254
2011-07-11 04:10:23 W3SVC1459592338 172.XX.XX.XX GET / - 123 - 172.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 1 0
2011-07-11 04:10:23 W3SVC1459592338 172.XX.XX.XX GET / - 123 - 172.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 1 0
Event log is no help
any iedas???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一番主要搜索后,我发现了这个 MS 支持页面。这让我发现身份验证类型未设置,我将其设置为 NTLM 并且一切正常
cscript adsutil.vbs set w3svc/WebSite/root/NTAuthenticationProviders "NTLM"
其中 WebSite 是从 IIS 获取的网站的 ID
after some major searching I found this MS support page. It led me to work out that the authentication type was not set, i set it to NTLM and it all worked
cscript adsutil.vbs set w3svc/WebSite/root/NTAuthenticationProviders "NTLM"
Where WebSite is the ID of your webste taken from IIS