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??!!
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With