Thursday, May 12, 2011

It is an error to use a section registered as allowdefinition='MachineOnly'

It is an error to use a section registered as allowdefinition='MachineOnly'  beyond machine.config

When I try to run my application I get the following parser error :
Parser Error Message: It is an error to use a section registered as allowdefinition='MachineOnly' beyond machine.config.

The Pure ASP.NET Upload extension adds an entry to the web.config file. Unfortunately, this entry can only be used when you remove an attribute in the machine.config file, that is located in your windows dir\Microsoft.NET\Framework\version\CONFIG directory. Locate the following line :
<section name="processModel" type="System.Web.Configuration.ProcessModelConfigurationHandler, System.Web, version="1".0.3300.0, Culture=neutral, publickeytoken="b03f5f7f11d50a3a"" allowdefinition="MachineOnly"/>

and delete the allowDefinition attribute.

1 comment: