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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Configuration Error in web.configConfiguration Error in web.config
Previous
 
Next
New Post
8/15/2011 5:16 PM
 

Hi,
I have come accross an odd error. 

I have set up my DNN installation and created the first portal. Everything worked fine.  I then set up a second portal, which worked fine, but the first portal then displayed this error (see below). 

I edited the web.config (only to force IIS refresh) which then seemed to revive my first portal.  As soon as I navigated to the second portal, the first portal showed this error again.

I then set up a third portal, which works fine.  At present the first is screwed up and the next two are fine... Any ideas?

ps - The only difference in these portals, is the first portal has two aliases (this one also includes localhost/somesite)

Server Error in '/' 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 183: --> 
Line 184: <!-- allow large file uploads -->
Line 185: <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" requestValidationMode="2.0" />
Line 186: <httpCookies httpOnlyCookies="true" requireSSL="false" domain="" />
Line 187: <!-- GLOBALIZATION

Source File: [***LOCAL FILEPATH***]\wwwroot\web.config    Line: 185


Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
 
New Post
8/16/2011 9:51 AM
 
please remove the requestValidationMode="2.0" from the end of the lines in web.config to resolve it. DotNetNuke ships with a config set up for asp.net 2.0, but if on install it detects asp.net 4.0 it updates the web.config for that version (adding these requestValidationMode attributes to fix a breakling change introduced by microsoft). You see this type of issue when you install on one IIS site that uses asp.net 4.0 in its application pool and then copy the web.config to another iis site where it uses asp.net 2.0 (as it's not possible for DotNetNuke to do the automatic downgrade)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/16/2011 1:00 PM
 
Brilliant... that's done the trick Cheers Cathal
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Configuration Error in web.configConfiguration Error in web.config


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