Click here to Skip to main content
13,007,637 members (70,351 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am trying to open web project and run it. When I am going to run it the following error arises. I have already configured the web.config file of this project as per my system, but still this error occurs.
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.
Here is my web.config file
<?xml version="1.0"?>
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
        <add name="HelpDBConString" connectionString="Data Source=ALOK-PC\SQLEXPRESS;Initial Catalog=HELPDESKMGMTSystem;Trusted_Connection=true;" providerName="System.Data.SqlClient"/>
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        <compilation debug="true" targetFramework="4.0">
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        <authentication mode="Windows"/>
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.

and the error is-
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.

What should be the solution of this error. Pls tell me...
Thank you.
Posted 10-Nov-12 20:05pm
Updated 11-Nov-12 2:51am
onenomi 12-Nov-12 4:31am
Which version IIS is it? 6 or 7? (Or other?)
NayakMamuni 12-Nov-12 7:37am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The error message is clear - "This error can be caused by a virtual directory not being configured as an application in IIS."

Check this Deployment of a Website on IIS[^]
NayakMamuni 13-Nov-12 2:16am
Thanks for the valuable information.
Thanks again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170628.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100