Richard
Richard

Reputation: 22016

How can you turn off request validation in IIS Express?

I have always been able to turn off request validation on IIS and cassini when I need to post HTML from an HTML Editor. Problem is I can't seem to do so on IIS express. Have tried the following:

<%@ Page Language="C#" ValidateRequest="false"

<system.web>
<pages  validateRequest="false">

Any ideas?

Thanks.

Upvotes: 0

Views: 1576

Answers (1)

Simon Mourier
Simon Mourier

Reputation: 138950

Maybe you could try to change the web.config like this:

<system.web>
 <httpRuntime requestValidationMode="2.0" />
</system.web>

(more info here: http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes)

Upvotes: 5

Related Questions