Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules Parser Error Message: Unrecognized attribute Parser Error Message: Unrecognized attribute 'requestValidationMode'
Previous
 
Next
New Post
1/23/2011 11:05 PM
 
I've struggled with this for 2 days now and no success. I'm developing a custom module and I'm getting the following error;

Server Error in '/DNN/DesktopModules/myCustomModule' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'requestValidationMode'. Note that attribute names are case-sensitive.

Source Error:

Line 174:    -->
Line 175:    <!-- allow large file uploads -->
Line 176:    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" requestValidationMode="2.0" />
Line 177:    <httpCookies httpOnlyCookies="true" requireSSL="false" domain="" />
Line 178:    <!--  GLOBALIZATION


Source File: C:\DNN\web.config    Line: 176

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618


The module works ok until I click a link that brings up a pop-up window that's supposed to display more info for the user. The pop-up comes up but with the above error.
The module is compiled against Framework 3.5 and is running in dotnetnuke 5.6.0 in a developmet machine running Windows XP with .NET framework 2,3,3.5 and 4 installed.
When I delete, the offending attribute in the web.config, it is readded by DNN or another module. Please advise me on what to do. Thanks.

Mackeny

pendelea.com -The #1 website for properties in Kenya
 
New Post
1/27/2011 12:30 AM
Accepted Answer 
SOLVED. I did several things to make the module work so I thought I should write them down in case someone faces a similar situation in the future. First of all let me note that my module is a modified 'Simply Classified' module which was graciously released open source on Codeplex by Comsite. The original module was not experiencing the same error as mine. I took the following steps.
  • I went to the properties of my website's virtual folder  in IIS and changed  the ASP.NET Version to 2.0.50727 from 4.0.30319. I then deleted the 'requestvalidationmode' attribute in the web.config and this time it didn't reappear again.
  • I now faced another error message 'Could not load file or assembly 'DotNetNuke.HttpModules.compression...'. This dll was right in the bin folder but it couldn't find it. Well it was looking for the .NET Framework 2.0 version. Since I was building my module using dotnetnuke.dll from my dotnetnuke 5.6.0 which uses framework 3.5, my module had to compile against framework 3.5. I then downloaded and installed DotNetNuke 4.9.4 and used the that dotnetnuke dll in my references, dialed back the .NET Framework to 2.0, compiled and there IT WORKED!

Mackeny

pendelea.com -The #1 website for properties in Kenya
 
New Post
11/14/2011 11:55 PM
 
DNN 6.1 is developed for .NET framework 4.0, the above solution didn't seem right to me.
What I did instead I changed "Target Framework" of the website to 4.0 and recompiled it, all worked just fine now!
 
New Post
6/18/2013 4:36 PM
 
I just changed the. Net framework from version 4.0 to 2.0, and then back from 2.0 to 4.0! And everything worked perfectly!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules Parser Error Message: Unrecognized attribute Parser Error Message: Unrecognized attribute 'requestValidationMode'


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out