Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtual Directory not being configured as an application in IIS

Tags:

asp.net

I downloaded a testing website code from a site and I converted it to visual studio 2008. But, I get the compilation error as follows:

"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."

Anyone, solve the problem plz??!!

like image 950
Developer404 Avatar asked Dec 21 '09 07:12

Developer404


People also ask

How do I convert virtual directory to application in IIS?

In IIS Manager, expand the node for the local computer and then expand the Sites folder. Right-click the folder that you want to convert to an application and then click Convert to Application.

What is the difference between virtual directory and application in IIS?

Virtual directories and applications are now separate objects, and they exist in a hierarchical relationship in the IIS configuration schema. Briefly, a site contains one or more applications, an application contains one or more virtual directories, and a virtual directory maps to a physical directory on a computer.

How do I find virtual directory in IIS?

In the Internet Information Services window, expand server name (where server name is the name of the server). Right-click the Web site that you want (for example, Default Web Site), point to New, and then click Virtual Directory.

How do I manually create a virtual directory in IIS Express?

In the Web site location text box, click New Web Site. In the Web URL text box of the Create New FrontPage Web dialog box, type the URL to the remote IIS server and append the name of the virtual directory that you want to create, for example, http://<server name>/<new virtual directory name>. Click OK.


1 Answers

It depends how your are running the application.

If your running it thro the temp asp.net webserver which starts when you run any application from the VS2008

or

Configure the web apps in your system IIS.

You might be getting this error because, the application need to configure in the local IIS instead of temp. asp.net web server. So move the application files into the Inetpub/wwwroot folder. And configure it as the web application before running.

Ref.

http://forums.asp.net/t/1031775.aspx <<-- try this one first

http://umbraco.org/documentation/books/install-umbraco-4-on-windows-vista/configure-iis-website

http://www.shabdar.org/virtual-directory-not-being-configured-as-an-application-in-iis.html

like image 161
solairaja Avatar answered Sep 20 '22 14:09

solairaja