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.

Related

This page is a static archival copy of what was originally a WordPress post. It was converted from HTML to Markdown format before being built by Hugo. There may be formatting problems that I haven't addressed yet. There may be problems with missing or mangled images that I haven't fixed yet. There may have been comments on the original post, which I have archived, but I haven't quite worked out how to show them on the new site.

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.