Asp.net mvc 2 IntegrationTests-潜在危险的请求。从客户端检测到路径值

Asp.net mvc 2 IntegrationTests-潜在危险的请求。从客户端检测到路径值,asp.net-mvc-2,integration-testing,web-config,asp.net-4.0,Asp.net Mvc 2,Integration Testing,Web Config,Asp.net 4.0,我收到以下错误:一个潜在危险的请求。当此URI:http://www.site.com/%3f 如何编写针对所有此类错误的集成测试? 我想针对所有这些错误进行测试: A potentially dangerous Request.Path value was detected from the client A potentially dangerous Request.Cookies value was detected from the client A potentially danger

我收到以下错误:
一个潜在危险的请求。当此URI:
http://www.site.com/%3f

如何编写针对所有此类错误的集成测试?
我想针对所有这些错误进行测试:

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

你到底想测试什么?您的应用程序如何对某些断开的URL作出反应?