Avatar of yonbret
yonbret
Flag for United States of America asked on

Getting error "potentially dangerous Request.Form value" on ASP Page on Windows Server 2019

IIS and ASP.net problem.

I have an application that I recently moved from Windows Server 2008 to Windows Server 2019.

Some of the data being saved contains </=, which produces an error: A potentially dangerous Request.Form value was detected from the client

My page header contains:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="WaferRFP.aspx.vb" Inherits="Wafers_WaferRFP" ValidateRequest="false" %>

I have also tried adding:
<pages validateRequest="false"></pages>
to the System.web section of the Web.config file, but I am still getting the error message.

What am I missing?
ASP.NET* iis8* iis10Windows Server 2019

Avatar of undefined
Last Comment
yonbret

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chinmay Patel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
yonbret

ASKER
I added <httpRuntime requestValidationMode="2.0" /> to the web.config file and everything is now working as needed.
Your help has saved me hundreds of hours of internet surfing.
fblack61