Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

A potentially dangerous Request.Path value was detected from the client (?).

Posted on 2011-03-15
5
Medium Priority
?
1,278 Views
Last Modified: 2012-05-11
I have an MVC3 web application and a second Dynamic Data website used for data administration. I want a link from the MVC3 to the Dynamic Data site, and have created the code which will redirect it. At the moment it looks like this,

string url = http://localhost:4189/WebAdmin/%3Fun3Dmyusername%3D353494271.949838

since in development I have hard coded the path "http://localhost:4189/WebAdmin/%" into my web config. The problem is that when I call Response.Redirect(url) I get the YellowScreenOfDeath with the above error (in subject).

Should I use somethign besides Response.Redirect()?

Thanks,
newbieweb
0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 35137540
Put validateRequest="false" in your page directive

where you are redirecting
0
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 2000 total points
ID: 35137579
OR add it in web.config

<system.web>
        <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" />
        <pages validateRequest="false" />
0
 

Author Comment

by:newbieweb
ID: 35137614
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
 
<pages> is highlighted...
Line 112:      </providers>
Line 113:    </roleManager>
Line 114:    <pages>
Line 115:      <namespaces>
Line 116:        <add namespace="System.Web.Mvc" />
0
 

Author Comment

by:newbieweb
ID: 35138000
I think I mis-understood. I need to update the target web.config. I am testing that now...
0
 

Author Closing Comment

by:newbieweb
ID: 35138093
That worked!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question