That Mysterious requirePermission Attribute

77 words

I started upgrading an ASP.NET 1.1 project to 2.0, and I got this error: “Unrecognized attribute ‘requirePermission’ (C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Configmachine.config line 14)”

Googling revealed very little in the way of resolutions. After much fruitless tweaking, I finally removed the web project and re-added it using the filesystem directory instead of the http://localhost reference. After that, the app launched with the ASP.NET Development Server instead of IIS and the error went away. Weird.

UPDATE: Updated to fix backslashes, I hope.

Originally posted on my personal blog which was active from 2003 to 2020.

Sorry, new comments are disabled on older posts. This helps reduce spam. Active commenting almost always occurs within a day or two of new posts.