Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now