Reputation: 1
I am getting window authentication window popup on some of my views in mvc4. It works fine when I host it on local server. But when I upload my code to my hosting server, all the views works fine except some views.
I am using form authentication in my application. And the views which given me such popups their controller class define with [Authorize]
attribute. Is it an issue with IIS on hosted server or something else?
This is the popup message:
Upvotes: 0
Views: 4563
Reputation: 1039508
I suspect that you have Integrated Windows Authentication or Basic Authentication configured in IIS for your website or application (depending on how you are hosting it). Make sure you disable it and enable anonymous access to the website if you want to use Forms Authentication.
Upvotes: 1