This article tell how to resolve configuration error in line authentication mode = “Windows” of web.config file for dotnet application
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.
Line 37: by Microsoft that offers a single logon and core profile services for member sites. Line 38: –> Line 39: Line 40:
Source File: C:\Inetpub\wwwroot\Jmsreports\web.config Line: 39
The above error comes in situation when you have manually created the virtual directory and have not configured this as an application. In this case you won’t be able to browse the application.
In above scenario I transferred my web application folder jmsreports from one machine to another and created virtual directory with alias JMS and browsed to the Jmsreport folder.
By typing http:// localhost /JMS / report.aspx in address bar browser diplayed the above error.
To resolve this error ,
Go to IIS (Control Panel -> Administrative Tools -> Internet information Services)
Go to Default Website
Select the Virtual Directory (in my case JMS) from list
Right Click it
Select properties from the list.
And then click on Create button next to the Application’s textbox
It will create the application with the same name as of virtual directory name. Now the application can be accessed.
Start earning now, Join my network on Bukisa