<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
这是web.config的配置,运行出现在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
这是web.config的配置,运行出现在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。
解决方法:将C:\WINDOWS\Microsoft.NET\work\v2.0.50727\CONFIG\machine.config中“ <section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>”的allowDefinition="MachineToApplication" 改为 allowDefinition="Everywhere"
http://blog.csdn.net/saijie1983/article/details/6625200