Try our conversational search powered by Generative AI!

A couple of problems after upgrading to .NET 4.0


I've upgraded our site from .NET 3.5 to 4.0 and a couple of problems has showed up.

The first one occures after saving an edited page. It then gives me the error "A potentially dangerous Request.Form value was detected from the client (ctl00$FullRegion$PC_55_1$EditForm$MainBody$MainBody="<P><STRONG>För tredj..."). " This is solved by adding <httpRuntime requestValidationMode="2.0" /> to <system.web> in web.config but I wonder if this is a "correct" way to solve it? Are there any "better" was to go about?

The second one is that Ajax stopped working. I suppose this has more to do with .NET than EPiServer but perhaps someone has a clue on what to do. I had a hard time getting Ajax to work in 3.5 and though that it was a closed chapter but here we go again. :)

Oct 13, 2011 8:13

Our dear Allan Thraen have made a blog post about it:

So yes, the requestValidationMode is the correct way :) 

Oct 13, 2011 8:48
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.