Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

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 @ Friday, February 03, 2006 5:57 AM

Print

Comments on this entry:

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by David Mackey at 7/6/2006 2:17 AM
Gravatar
Thanks. That was helpful.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by JohnWsol at 9/17/2006 12:00 PM
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?

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Michael Freidgeim at 9/17/2006 9:11 PM
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.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by JohnWsol at 9/17/2006 10:47 PM
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?

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Michael Freidgeim at 9/18/2006 11:35 AM
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

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Jason at 1/10/2007 5:55 PM
Gravatar
Thanks,it is helpful to me.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Dean at 3/20/2007 8:36 AM
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.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Michael Freidgeim at 3/20/2007 12:58 PM
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.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Dean at 3/25/2007 5:25 AM
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

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Gaurav at 5/17/2007 11:34 PM
Gravatar
It really was helpful man thanks very much

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by ewan at 2/5/2008 10:00 AM
Gravatar
thanks a million

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Marc at 5/15/2008 10:29 PM
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."


# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Michael Freidgeim at 5/15/2008 11:19 PM
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

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Doodah at 3/10/2009 6:59 AM
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.

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Doodah at 3/10/2009 7:03 AM
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".

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by Douglas Zanatt at 6/25/2009 10:12 AM
Gravatar
Dude, your post was just great. You could never know how heplful you just were! Thank you very much!

# re: Error "Unrecognized attribute 'requirePermission'" after publishing Web Site.

Left by steve at 8/27/2009 9:14 PM
Gravatar
bewdy mate.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345