Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com

I had a working DotNetNuke project 4.0.2 with .Net 2.0 that I wanted to publish to Windows Server 2003.

However when I opened the published web site, I've got an error:

Parser Error Message: Unrecognized attribute 'requirePermission'.

Source Error:

Line 4: <sectionGroup name="dotnetnuke">
Line 5: <!-- the requirePermission attribute will cause a syntax warning - please ignore - it is required for Medium Trust support -->
Line 6: <section name="data" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>

After some search in Google I recognized that the published site is running .Net 1.1 instead of expected 2.0.

I had to change application pool to be ASP.NET 2.0(how to do this see e.g. Create the Application Pool  and Move the Virtual Server to the New Application Pool ) and  then run

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis  -s W3SVC/1/ROOT/DotNetNuke

to fix the problem. Note that  DotNetNuke should be replaced with actual name of your virtual directory and 1 with the actual number of your web site (1 for default web site).

Posted on Friday, February 3, 2006 5:57 AM DotNetNuke , ASP.NET | Back to top


Comments on this post: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Thanks. That was helpful.
Left by David Mackey on Jul 06, 2006 2:17 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
I'm new to .Net 2.0 and dotNetNuke.
I'm trying to install DNN 4.3.4 and get the same error message above "requiredPermission..."

What does it mean to "change application pool to ASP.NET 2.0? (How do I do that?)

and

What if my:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
-- does not have a W3SVC sub-directory?
Left by JohnWsol on Sep 17, 2006 12:00 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
JohnWsol,

1.To change application pool to ASP.NET 2.0 you need to have an existing application pool running asp.net 2.0 or create new one (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/f05a7c2b-36b0-4b6e-ac7c-662700081f25.mspx?mfr=true).
Then in IIS manager open your Web Application Properties and select the approptriate application pool from combo-box.

2. You don't need W3SVC sub-directory.
Folder %windir%\Microsoft.NET\Framework\v2.0.50727\ has aspnet_regiis.exe and W3SVC/1/ROOT/DotNetNuke is a parameter that refers to themetabase address of your web application.

Left by Michael Freidgeim on Sep 17, 2006 9:11 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Thanks, I had no idea just how little I knew!
I'm running XP Pro SP2 and IIS 5.1. Can I make it work with 5.1? Or do I need to upgrade to II6? Is it downloadable from somewhare?
Left by JohnWsol on Sep 17, 2006 10:47 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
JohnWsol,
I don't have XP Pro SP2 machine to check now, but I beleive the following should work:
in IIS manager open your Web Application Properties, select ASP.NET tab and select the Asp.Net version 2.0 from the combo-box
Left by Michael Freidgeim on Sep 18, 2006 11:35 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
I've tried the aspnet_regiis -s W3SVC/1/ROOT/DotNetNuke command you specified, but it is giving an error on "the specified path was invalid. I though maybe the netadata part you specificed may be off but when i tried running a command adsutil.vbs START_SERVER W3SVC/1 it stated something like WSCRIPT is invalid, do you want to use CSCRIPT instead? I know it seems like the pathcode registration you are specifying. Not sure what i am missing.... BTW , Its a 2K3 Virtual server.
Left by Dean on Mar 20, 2007 8:36 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Dean,

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfASPNETIISRegistrationToolAspnet_regiisexe.asp for detailed description of aspnet_regiis.
Note that in W3SVC/1/ROOT/DotNetNuke DotNetNuke should be rename with actual name of your virtual directory and 1 is web site number(1 for default). If you have not default web site, the number should be different.
Left by Michael Freidgeim on Mar 20, 2007 12:58 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Mike,
I will read the URL but as a side note. The owner of the VPS would prefer that i setup DNN not as a virtual directory under the default website area but as an actual website. Hopefully the URL you provided will take that into consideration.

Thanks,
Dean
Left by Dean on Mar 25, 2007 5:25 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
It really was helpful man thanks very much
Left by Gaurav on May 17, 2007 11:34 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
thanks a million
Left by ewan on Feb 05, 2008 10:00 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Hey There,

thanks for the guide, seems to work but after running it I'm now getting a different error:

"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level."


Left by Marc on May 15, 2008 10:29 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Marc,
Ensure that in IIS properties your root virtual directory created as a Web APPLICATION.
http://msdn.microsoft.com/en-us/library/ha2y9493(VS.80).aspx
Left by Michael Freidgeim on May 15, 2008 11:19 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
This blog post is complete garbage. It is wrong. Don't waste your time. It doesn't even remotely address the actual problem.

In comments above, Michael Freidgeim at 9/18/2006 11:35 AM has a fix that actually works: Right-click on your web site in the IIS MMC snap-in, for example "Web Sites/Default Web Site". Click the "ASP.NET" tab. Change "ASP.NET Version" to 2.0, whatever 2.0 you've got installed. Run the installer again; it worked for me, it may well work for you.
Left by Doodah on Mar 10, 2009 6:59 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
OK, I now notice that Michael Freidgeim who wrote a comment with the correct fix, is also the blogger who posted the nonsense at the top of the page. This is very strange to me, but it now seems ungracious to have called the post "garbage".
Left by Doodah on Mar 10, 2009 7:03 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Dude, your post was just great. You could never know how heplful you just were! Thank you very much!
Left by Douglas Zanatt on Jun 25, 2009 10:12 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
bewdy mate.
Left by steve on Aug 27, 2009 9:14 PM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Thanks for sharing this. This is very helpful.

Left by Mylene on Dec 22, 2009 6:04 AM

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.
Requesting Gravatar...
Very insightful. Many thanks
Left by Manyuira on Sep 14, 2010 3:35 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net