Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > error after .net framework 4.0 installation View modes: 
User avatar
Member
Member
Willy - 7/14/2011 10:52:06 PM
   
error after .net framework 4.0 installation
We have installed kentico r2 on windows 2008 r2 with framework 2.0. Then installed .net framework 4.0.. and after that i get this error below after changing font size of a text.

"Server Error in '/' Application"
A potentially dangerous Request.Form value was detected from the client

i fixed it by using the solution here : http://stackoverflow.com/questions/81991/a-potentially-dangerous-request-form-value-was-detected-from-the-client

is that enough, or do i need to make some more changes to my kentico setup?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/15/2011 2:58:40 AM
   
RE:error after .net framework 4.0 installation
Hi,

This article describes the issue and solution very well - http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_potentially_dangerous.htm.

What helps usually is just to add this into the web.config file:

<httpRuntime requestValidationMode="2.0"/>

Best regards,
Juraj Ondrus

User avatar
Member
Member
Aon_Vlado - 6/23/2012 7:24:17 AM
   
RE:error after .net framework 4.0 installation
I concur with Juraj. I had this error in a clean default installation when I wanted to delete a default web part from a page template. Just changing this line in the web.config helped:

<httpRuntime maxRequestLength="2097151" waitChangeNotification="1" maxWaitChangeNotification="3600" requestValidationMode="2.0" />