Tuesday, March 2, 2010

.Net Parser error when running application





I had just posted up a change to my WebService which I had not touched in a while and received this error:


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


Solution:
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 :

and delete the "allowDefinition" attribute.

No comments: