开发者

How RedirectToAction determines when site is consumed from Internet?

I've been working on a Web site with ASP.NET MVC version 1, deployed in a Windows Server 2008 R2 (IIS7, integrated mode). The site works well in intranet enviroment, but开发者_如何学Go recently was published in Internet with a public domain name. RedirectToAction still aims to private IP, causing redirect to login page. Where I can specify the change?

For notAnExpert petition, an extract of my code. Nothing special here, only the default conventions:

return RedirectToAction(string.Format("Details/{0}", CampaignId), "Campaigns");  

In my Global.asax neither:

public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        routes.MapRoute("clicked_links", "Clicked/Index", new { controller="Clicked", action="Index"});


        routes.MapRoute(
            "Default",                                              // Route name
            "{controller}/{action}/{id}",                           // URL with parameters
            new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
        );

    }


My fault guys, in the view I find this

 <form action=<% Request.URL %>

Additionaly the web server was misconfigured.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜