A potentially dangerous Request.Path value was detected from the client (*)
I am receiving the rather self explanatory error:
I am receiving the rather self explanatory error:
Without routing, HttpContext.Current.Session is there so I know that the StateServer is working. When I route my requests, HttpContext.Current.Session is null in the routed page. I am using .NET 3.5 sp1 on IIS 7.0, without the MVC previews. It appears that AcquireRequestState is never fired when using the routes and so the session variable isn’t instantiated/filled.
I was planning to use url routing for a Web Forms application. But, after reading some posts, I am not sure if it is an easy approach.
I upgraded my site to use ASP.Net MVC from traditional ASP.Net webforms. I’m using the MVC routing to redirect requests for old .aspx pages to their new Controller/Action equivalent:
I’d like to ignore multiple wildcard routes. With asp.net mvc preview 4, they ship with:
I have a .aspx page in the following path:
With the default web api route
I there a simple way when using ASP.NET 4.0 routing with Web Forms to produce a route that will act as some kind of wildcard?
I have the default Route in Global.asax:
I am creating an ASP.NET MVC 5 application and I have some issues with routing. We are using the attribute Route to map our routes in the web application. I have the following action: