ASP.NET MVC 4 - RedirectToAction not working in Explorer after deploying to IIS 7 -


i'm having issue number of redirects in intranet application i'm building. built using asp.net mvc4.

when running application locally after debugging in visual studio, works fine in browsers, deploying iis 7 on our development server , running remotely there causes of redirecttoaction statements stop working in internet explorer.

the first of following statements nothing, refreshes current page, while second redirects properly:

if (command == "completefollow")     {         return redirecttoaction("createfollowup", "echo", new { id = resolution.complaint_id });     } else     {         return redirecttoaction("details", "echo", new { id = resolution.complaint_id });     } 

both pages exist , redirects working in both chrome , firefox, not internet explorer.

does know why might happening , how can fixed?

solution found:

it internet explorer compatibility mode issue.

it fixed adding:

<meta http-equiv="x-ua-compatible" content="ie=edge" /> 

to head section of _layout.cshtml


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -