Problem: A potentially dangerous Request.QueryString value was detected from the client
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"
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.
- Open the SS_USA_Locator solution in Visual Studio .NET.
- Add the following line above the Dynamic Debug Compilation section in the Web.config file.
<!-- Disable Requst Validation feature-->
<pages validateRequest="false" />