RedirectToAction not working when deployed to 2008r2 server

Puller58

New Member
I have an application which work both when i deploy it with webdeploy and run it through Visual Studio on my local machine. I am working on an windows 7 machine. IIS 7 / ASP4 .I have a controller called Home and Action index. I have tried \[code\]return RedirectToAction("Index", ); return RedirectToAction("Index", "Home"); return RedirectToAction("Index","Home", emptyDictionary); return RedirectToAction("Index", "Home", null);\[/code\]However when I deployed this to a windows 2008r2 server II7 ASP4Redirects fail.App is installed under C:\inetpub\wwwroot\MyApplicationHere is Global.asax\[code\]public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{param_1}/{param_2}/{param_3}", new { controller = "Home", action = "Index", param_1 = UrlParameter.Optional, param_2 = UrlParameter.Optional, param_3 = UrlParameter.Optional } ); }\[/code\]Is there are Role Or a Feature I need to install ?Could this be actually working but could it be that error code from server not 200 so I am showing the error page .
 
Back
Top