PROBLEM

A potentially dangerous Request.QueryString value was detected from the client

Description

When running the ArcWeb Site Starter Locator USA application on Visual Studio .NET 2003 the following error occurs:

"A potentially dangerous Request.QueryString value was detected from the client"

Cause

This problem occurs because ASP.NET version 1.1 contains a new feature called request validation. Request validation was added to help prevent script-injection attacks.

Solution or Workaround

The steps below explain how to disable this new feature for the site starter application. However this will leave the site open to possible script-injection attacks. For more details on this newly added functionality please see the link in the Related Information section.
  1. Open the SS_USA_Locator solution in Visual Studio .NET.
  2. Add the following line above the Dynamic Debug Compilation section in the Web.config file.

    Code:
    <!-- Disable Requst Validation feature-->
    <pages validateRequest="false" />

Article ID:000006340

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic