Solved

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

Posted on 2011-03-15
5
1,260 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 500 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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