473,408 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

It is an error to use a section registered as allowDefinition='MachineToApplication'

I am getting the following error:
It is an error to use a section registered as allowDefinition='MachineToApplication'
Error on line 144
Here is a copy of my webconfig file:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <!-- 
  3.     Note: As an alternative to hand editing this file you can use the 
  4.     web admin tool to configure settings for your application. Use
  5.     the Website->Asp.Net Configuration option in Visual Studio.
  6.     A full list of settings and comments can be found in 
  7.     machine.config.comments usually located in 
  8.     \Windows\Microsoft.Net\Framework\v2.x\Config 
  9. -->
  10. <configuration>
  11.     <configSections>
  12.         <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  13.             <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  14.                 <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  15.                 <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  16.                     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
  17.                     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  18.                     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  19.                     <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  20.                 </sectionGroup>
  21.             </sectionGroup>
  22.         </sectionGroup>
  23.     </configSections>
  24.     <appSettings>
  25.         <add key="Connstr" value="SERVER=MyHost.com;DATABASE=Databasename; User ID=UserA;Password=password;"/>
  26.         <!--aadd key="Connstr" value="SERVER=.;DATABASE=eDMS;Integrated Security=True" /-->
  27.     </appSettings>
  28.     <connectionStrings>
  29.         <add name="connectionString" connectionString="Data Source=MyHost.com;Initial Catalog=Databasename;User ID=UserA;Password=password" providerName="System.Data.SqlClient"/>
  30.         <!--add name="connectionString" connectionString="Data Source=.;Initial Catalog=Databasename;Integrated Security=True" providerName="System.Data.SqlClient" /-->
  31.         <add name="newedlinkConnectionString" connectionString="Data Source=MyHost.com;Initial Catalog=Databasename;User ID=UserA;Password=password" providerName="System.Data.SqlClient"/>
  32.         <add name="EdlinkNewDemoConnectionString" connectionString="Data Source=MyHost.com;Initial Catalog=Databasename;User ID=UserA;Password=password" providerName="System.Data.SqlClient"/>
  33.         <add name="AbujaClinicsConnectionString" connectionString="Data Source=MyHost.com;Initial Catalog=Databasename;User ID=UserA;Password=password" providerName="System.Data.SqlClient"/>
  34.     </connectionStrings>
  35.     <system.web>
  36.         <pages>
  37.             <controls>
  38.                 <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
  39.                 <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
  40.                 <add namespace="Microsoft.Web" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
  41.                 <!--<add namespace="Microsoft.Web.Components" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>-->
  42.                 <add namespace="AtlasControlToolkit" assembly="AtlasControlToolkit" tagPrefix="atlas"/>
  43.                 <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  44.                 <add assembly="RealWorld.Grids" namespace="RealWorld.Grids" tagPrefix="rwg"/>
  45.                 <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  46.             </controls>
  47.         </pages>
  48.         <!--sessionState mode="InProc" cookieless="false" timeout="480"></sessionState-->
  49.         <!-- 
  50.           Set compilation debug="true" to insert debugging 
  51.           symbols into the compiled page. Because this 
  52.           affects performance, set this value to true only 
  53.           during development.
  54.     -->
  55.         <compilation debug="true">
  56.             <buildProviders>
  57.                 <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider"/>
  58.             </buildProviders>
  59.             <assemblies>
  60.                 <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
  61.                 <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  62.                 <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  63.                 <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  64.                 <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  65.                 <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  66.                 <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  67.             </assemblies>
  68.         </compilation>
  69.         <!--
  70.           ASMX is mapped to a new handler so that proxy javascripts can also be served.
  71.     -->
  72.         <!--
  73.           The <authentication> section enables configuration 
  74.           of the security authentication mode used by 
  75.           ASP.NET to identify an incoming user. 
  76.        -->
  77.         <authentication mode="Forms">
  78.             <forms defaultUrl="AdminLogin.aspx" name="Edlink" protection="All" loginUrl="AdminLogin.aspx" timeout="480" path="/"></forms>
  79.         </authentication>
  80.         <authorization>
  81.             <allow users="*"/>
  82.         </authorization>
  83.         <!--
  84.           The <customErrors> section enables configuration 
  85.           of what to do if/when an unhandled error occurs 
  86.           during the execution of a request. Specifically, 
  87.           it enables developers to configure html error pages 
  88.           to be displayed in place of a error stack trace.
  89. -->
  90.         <customErrors mode="RemoteOnly" defaultRedirect="Error.aspx">
  91.         </customErrors>
  92.         <siteMap enabled="true" defaultProvider="Edlink">
  93.             <providers>
  94.                 <add name="Edlink" type="EdlinkSiteMap"/>
  95.             </providers>
  96.         </siteMap>
  97.         <httpHandlers>
  98.             <remove verb="*" path="*.asmx"/>
  99.             <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  100.             <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"/>
  101.             <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  102.         </httpHandlers>
  103.         <httpModules>
  104.             <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  105.         </httpModules>
  106.     </system.web>
  107.     <!-- Uncomment this if your site globally denies access to anonymous users.  The 
  108.        authentication service and profile service are located under the virtual
  109.        "ScriptServices" directory.  Since you normally call the authentication web
  110.        service with an un-authenticated user, the following location tag can be used
  111.        to grant access to anonymous users.  If you use anonymous profile support
  112.        you will also need to grant access to anonymous users. -->
  113.     <!--
  114.   <location path="ScriptServices">
  115.     <system.web>
  116.       <authorization>
  117.         <allow users="*" />
  118.       </authorization>
  119.     </system.web>    
  120.   </location>
  121.   -->
  122.     <system.webServer>
  123.         <defaultDocument>
  124.             <files>
  125.                 <add value="AdminLogin.aspx"/>
  126.             </files>
  127.         </defaultDocument>
  128.         <handlers>
  129.             <remove name="WebServiceHandlerFactory-Integrated"/>
  130.             <remove name="ScriptHandlerFactory"/>
  131.             <remove name="ScriptHandlerFactoryAppServices"/>
  132.             <remove name="ScriptResource"/>
  133.             <add name="Reserved.ReportViewerWebControl.axd_*" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" preCondition="integratedMode,runtimeVersionv2.0"/>
  134.             <add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>
  135.             <add name="*_AppService.axd_*" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>
  136.             <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>
  137.             <add name="atlasglob.axd_*" path="atlasglob.axd" verb="*" type="Microsoft.Web.Globalization.GlobalizationHandler" preCondition="integratedMode,runtimeVersionv2.0"/>
  138.             <add name="atlasbatchcall.axd_*" path="atlasbatchcall.axd" verb="*" type="Microsoft.Web.Services.MultiRequestHandler" preCondition="integratedMode,runtimeVersionv2.0"/>
  139.             <add name="*.asbx_*" path="*.asbx" verb="*" type="Microsoft.Web.Services.ScriptHandlerFactory" preCondition="integratedMode,runtimeVersionv2.0"/>
  140.             <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"/>
  141.             <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"/>
  142.             <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  143.         </handlers>
  144.         <validation validateIntegratedModeConfiguration="false"/>
  145.         <modules>
  146.             <remove name="ScriptModule"/>
  147.             <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  148.         </modules>
  149.     </system.webServer>
  150.  
  151.     <location path="Core.aspx">
  152.         <system.web>
  153.             <authorization>
  154.                 <allow users="?"/>
  155.             </authorization>
  156.         </system.web>
  157.     </location>
  158.     <system.codedom>
  159.         <compilers>
  160.             <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
  161.                 <providerOption name="CompilerVersion" value="v3.5"/>
  162.                 <providerOption name="WarnAsError" value="false"/>
  163.             </compiler>
  164.             <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
  165.                 <providerOption name="CompilerVersion" value="v3.5"/>
  166.                 <providerOption name="OptionInfer" value="true"/>
  167.                 <providerOption name="WarnAsError" value="false"/>
  168.             </compiler>
  169.         </compilers>
  170.     </system.codedom>
  171.     <runtime>
  172.         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  173.             <dependentAssembly>
  174.                 <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  175.                 <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  176.             </dependentAssembly>
  177.             <dependentAssembly>
  178.                 <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  179.                 <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  180.             </dependentAssembly>
  181.         </assemblyBinding>
  182.     </runtime>
  183. </configuration>
Dec 27 '13 #1
0 1293

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: menkaur | last post by:
I tried to generate asp Application project( I’m using VS .Net 2003). After I did ,following errors occurred (runtime):...
1
by: choatdot | last post by:
I ftp my asp.net 2.0 pages using visual studio 2005 to a godaddy.com server, when I try running it I keep getting this error. Server Error in '/' Application....
0
by: dba123 | last post by:
My web site is definitely configured as an application in IIS. So what else could it be? I had added some of our code to this 3rd party's web.config shown below. So I don't know if it's the 3rd...
0
by: ruffeo | last post by:
There has been alot on the web about this web.config error that happens in visual studio .net 2005. Most people think this has to do with IIS, but .net 2005 doesn't run on IIS but a developer...
0
by: kong10 | last post by:
I have finish develop my program in ASP.NET. it can be run in Windows XP. When I try to move my Program from Windows XP to Windows 2003 Server. My program prompt out an error like below:- Parser...
1
by: kevingangsun | last post by:
I created an ASP.NET application for our company and it worked great on more than 4 windows 2003 servers. However, when we deployed it to another 2003 server (IIS6), we got the following error...
0
by: FabMahesh | last post by:
We are getting the below error on one of our servers running .net 2.0. The server committed a protocol violation. Section=ResponseBody Detail=Response chunk format is invalid I have checked...
1
by: jc | last post by:
RE: It is an error to use a section registered as allowDefinition='MachineToApplication' There's an asp.net 1.1 vb.net vs 2003 solution under a virtual directory on one of our sites. I can see...
0
by: jc | last post by:
RE: It is an error to use a section registered as allowDefinition='MachineToApplication' There's an asp.net 1.1 vb.net vs 2003 solution under a virtual directory on one of our sites. I can see...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.