简体   繁体   中英

404 - File or directory not found. IIS Windows Authentication issue

I developed an asp.net website which had a login page for authentication. Now I have a requirement to remove the login page and implement windows authentication. I enabled Windows authentication in web.config file and in IIS Server Manager and made changes in the project. Locally the page works perfect, but when I try to access the home page from server, it shows this error:

404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

If I access the link again, this time it will open the page. Also while working in the website, sometimes, the error message is shown randomly.

当您使用Windows身份验证时,您无需使用FORM Autentication ,您需要禁用它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM