Last post Aug 19, 2014 04:49 PM by Cucurachi Giorgio
Jun 28, 2006 01:13 PM|frSurfer|LINK
Jun 28, 2006 07:35 PM|Luis Abreu|LINK
what that error says is that element can only be present on the web.config placed on the top level folder of an application dir. in this case, i think that you have a sub directory with your site and this sub directory isn't configured in IIS as a web application.
so, copying that line to the web.config file placed at the top folder or configuring IIS so that the sub directory is configure as an app should solve this.
Aug 19, 2014 04:49 PM|Cucurachi Giorgio|LINK
You can fix this problem either defining the element in the web.config file of the root dir or setting Virtual Directory as APPLICATION in IIS.
For doing this with IIS 6.0, you first have to set the the directory in which your site is present as a Virtual Directory and then define this virtual directory as an
All physical directories under Inetpub\Wwwroot are not considered applications until the following procedure is used.
Open IIS Manager.
Expand the Default Web Site node and look for the subdirectory that you want to designate as an application root.
Right-click the directory that you want to mark as an application root, and then click
On the Directory tab, in the Application Settings section, click
In the Application name text box, type the name of the application, and then click
The virtual directory is now an application root.