Answer the question
In order to leave comments, you need to log in
How to overcome virtual directory error when adding authentication in IIS?
Hello. I am developing a website using ASP.NET MVC. I got to the authentication of the site administrator, I decided to use the Forms authentication method. Made settings in Web.Config and got an error:
Description : An error occurred while processing the configuration file required to service this request. Review the following details for this error and modify the configuration file.
Parser error message: This error is using a section registered as allowDefinition='MachineToApplication' outside of the application layer. This error can be caused by the fact that the virtual directory is not configured as an application in IIS.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question