I'm trying to set up ASP.net MVC4, hosting it with IIS7.
When performing a get request to my API, I get the following error:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 27: <system.web>
Line 28: <compilation debug="true" targetFramework="4.0" />
Line 29: <authentication mode="None" />
Line 30: <pages>
Line 31: <namespaces>
Source File: C:\inetpub\wwwroot\api\web.config Line: 29
Line 29 is highlighted in red. Any help would be greatly appreciated
Joe