Reputation: 493
On .NET MVC, I am creating a demo project. When I run my project with IIS Express, it runs fine. But after deploying it to Local IIS, it is showing me an error on my web page:
You are not authorized to view this page due to invalid authentication headers.
How can I get rid of this issue? Any help would be highly appreciated.
Upvotes: 2
Views: 11746
Reputation: 31363
In IIS, with Anonymous Authentication enabled as mentioned by CodeSniper, under Actions, click Edit. Be sure the Application pool identify radio button is selected.
(When I ran into this issue, Specific User was selected, with a user account that was no longer valid.)
Upvotes: 0
Reputation: 493
I found the problem ,Anonymous Authentication
was disabled in IIS manager.After enabling it started working perfectly.
Feeling good :)
Upvotes: 1