当前位置: 代码迷 >> ASP.NET >> 配置文件有关问题:在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是异常的 asp.net
  详细解决方案

配置文件有关问题:在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是异常的 asp.net

热度:1071   发布时间:2013-02-25 00:00:00.0
配置文件问题:在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的 asp.net
<system.web>
<customErrors mode="Off" defaultRedirect="Views/System/error.aspx">
<error statusCode="400" redirect="Views/System/error.aspx"/>
<error statusCode="403" redirect="Views/System/error.aspx"/>
<error statusCode="404" redirect="Views/System/error.aspx"/>
<error statusCode="405" redirect="Views/System/error.aspx"/>
<error statusCode="500" redirect="Views/System/error.aspx"/>
</customErrors>
<httpRuntime requestValidationMode="2.0" maxRequestLength="10485760"/>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<machineKey validationKey="3FD666E93BD963D59F746C3E6D786B10F7F7C123" decryptionKey="7868ECAC16B6EE504888965E374030EEE28ED635F929C456" validation="SHA1" decryption="3DES"/>
<authentication mode="Forms">
<!--<forms loginUrl="~/Account/LogOn" timeout="2880" />-->
<forms name=".ASPXAUTH" protection="All" timeout="300" domain="qqn1.dev" path="/" requireSSL="false" slidingExpiration="true" loginUrl="~/Account/LogOn" defaultUrl="/"/>
</authentication>
   
  <membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
   
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
   
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
  -
<pages>
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
</namespaces>
</pages>
<httpModules>
<add name="CrossDomainCookie" type="QqNo1.Models.currenty.CrossDomainCookie,QqNo1"/>
  相关解决方案