VS 2008 error 'It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

 I am using VS 2008 on Windows XP. I downloaded the Ajax Control Toolkit. I am working on Liberty's Programming ASP.NET 3.5 AjaxDemo.aspx. When I hit F5 I get the following error message:

 "Error    1    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."  I do not have IIS on this machine.

 I checked out   http://geekswithblogs.net/ranganh/archive/2005/04/25/37609.aspx, but this does not seem to work for me. If someone can help me out, I would greatly appreciate it.

Here is my webconfig 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
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
    <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <appSettings/>
    <connectionStrings/>
    <system.web>
        <!--
            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">
            <assemblies>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>
        <!--
            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" />
        </customErrors>
        -->
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </controls>
        </pages>
        <httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
        </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
    </system.web>
    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="WarnAsError" value="false"/>
            </compiler>
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="OptionInfer" value="true"/>
                <providerOption name="WarnAsError" value="false"/>
            </compiler>
        </compilers>
    </system.codedom>
    <!--
        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.
    -->
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
            <remove name="ScriptModule"/>
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </handlers>
    </system.webServer>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
</configuration>

Looking at Raganh's blog above, it has something to do with authentication but his webconfig file looks totally different than mine, and I need a little help here.

 Thanks again, in advance for your help.

Regards,

imatua

0
imatua
2/22/2009 4:02:10 AM
asp.net.config-deploy 12495 articles. 0 followers. Follow

2 Replies
730 Views

Similar Articles

[PageSpeed] 44

You have nested web.config files, one in a folder higher or lower than the other.  Rename or delete the one not associated with this application.

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
2/22/2009 2:01:25 PM

 Thanks Jeff for your response.

I renamed the application, and started over. I saw that I created too many sub folders with multiple web config files, so I started over careful to make sure there was only one website with no subdirectories with multiple web config files. 

Thanks again for your help.

Regards,

imatua

0
imatua
2/22/2009 11:07:32 PM
Reply:

Similar Artilces:

VS 2008
Hi,I was working on a site for a few days without problems,then one morning I got this when I tried running the website in Visual Studio 2008.Error    1    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.    C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\WebSites\Gear\_darcs\pristine\web.config    49    I didn't change the web.co...

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 i
Hi Friends  i host the applicatin on server.I got the  error as Virtual  Directory not cofigured.I am using .net frame work 2.0 and i create the virtual directory in application Server. I am using Form authentication for application. I checked  virtual directory is created successfully. I need help to set any other properties virtual directory properites.  Do you have a sub web.config files ? i mean config files other than the one in the main directory ? if so , please make sure to remove the <authentication> section from them. Regards,Anas G...

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 i
I added this to my web.config as specified in the article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000008.asp <authentication mode="Windows"/> I get this error when I try loading my aspx page: "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." I checked my IIS virtual directory and it has a name in for the application name in it's properties so I don't get why I still have this err...

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 i
Hi i am getting this error, i am using visual studio 2005 and i have IIS 6, what do i need to do to rectify this problem, thank you. Can i also add that this error just came out of the blue, because the last time i started up the project it worked fine....

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 configure
Dear All, I am a newbie and this is my first time trying to run asp.net :) I was trying to deploy the wrox asp.net sample code and this is what I got when I tried to run it. I created a virtual directory called "wrox". I have changed the username in the machine.config <processModel> to: userName="SYSTEM" password="AutoGenerate" I thought it was supposed to run because it is WROX OFFICIAL SAMPLE CODE. Server Error in '/wrox' Application. -------------------------------------------------------------------------------- Configur...

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 configure
Hello. I got this error on my brinkster hosting.   I have a virtual directory and on the virtual directory is a fodler called webroot. and on this there are 7 subdirectorys according to each one of my domains.  As the error says. I cant create a virtual directory because its not a dedicated server.     Server Error in '/' Application. Configuration Error 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. ...

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 i #2
Hi All,I built a website which works. I needed to be able to generate 2 versions of the same website so I built a tool that dynamicaly generates the DAL and BLL. It also copies various standard files from a template to the target source location. It also processes variouse source files to customise them based on certain settings. Anyway it all works. I can generate a version of the original site. However, my problem comes when I run the tool to generate my orginal site. I am unable to build it and I get the following error:"It is an error to use a section registered as allowDefinition=&...

Error 102 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
 Hi there, i'm greatful if nayone can help me with it. i'm stuck with this error, trying to get to working but to no avail. Error    102    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.   ...\Web.config    389     i read lots of the posts but the solutions offered there did not resolve my problem. here is what i've tried...

Please HELP 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 ap
I have: 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. I found: http://www.microsoft.com/technet/community/columns/insider/iisi0204.mspx and http://www.microsoft.com/technet/community/columns/insider/iisi0103.mspx but still can not FIX it can someone give me link what to do 1 by 1 to fix it 10x valhttp://www.montrealads.cahttp://www.whoiswho.cahttp://www.bluelabs.ca Hi, 1. Open the IIS Control Pan...

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
Why am I getting this error:Error     76     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.It is pointing to this entry in my web.config    <authentication mode="Forms">      <forms loginUrl="login.aspx" />    </authentication>Here's the kicker.  My project is set to use the Default Web Server in VS 2005...so why is it trying to talk...

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
Hey everyone.  I have an online application, and im trying to stick in a calendar it works well when i run it at VS05 environment  when i upload it and try to run it; Server Error in '/SQL' Application. Configuration Error 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...

error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
Dear Helpers,  I find a error as follows when I run the program under VS.net 2005. 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 It highlighted the following code in web.config.  <system.web>    <identity impersonate="true" userName="xxxxxx" password="xxxxxxx" />    <customErrors mode="Off"/> &n...

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level
Hello, I am getting this error and dont know what to do. I have no access to the server but ftp access. I had the server people define the folder with the code in it as an application and I still get the error message. The folder is off the public directory and only has 1 web.config file in in it.Server Error in '/' Application. Configuration Error 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...

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level
I know there are some posts already regarding this and I've read them.  So please don't simply tell me that the web.config can't be in a subdirectory. Here's my situation...  I am a website designer and I have server space that I pay for (i.e. I can't bring up IIS on my desktop).  I do, however, have a Plesk control deck for my domain.  I have clients that I build website for.  How do I set up individual application directories under Plesk? For example: /client1/client2/client3etc.a different app in each directory for each of my clients in ...

Web resources about - VS 2008 error 'It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. - asp.net.config-deploy

Resources last updated: 12/3/2015 9:41:07 PM