Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc RedirectToAction如何确定网站何时从Internet消费?_Asp.net Mvc_Iis 7 - Fatal编程技术网

Asp.net mvc RedirectToAction如何确定网站何时从Internet消费?

Asp.net mvc RedirectToAction如何确定网站何时从Internet消费?,asp.net-mvc,iis-7,Asp.net Mvc,Iis 7,我一直在使用ASP.NET MVC版本1开发一个网站,该版本部署在Windows Server 2008 R2(IIS7,集成模式)中。该网站在intranet环境下运行良好,但最近以公共域名在Internet上发布。RedirectToAction仍然针对私有IP,导致重定向到登录页面。在哪里可以指定更改 对于notAnExpert请愿书,我的代码摘录。这里没有什么特别之处,只有默认约定: return RedirectToAction(string.Format("Details/{0}",

我一直在使用ASP.NET MVC版本1开发一个网站,该版本部署在Windows Server 2008 R2(IIS7,集成模式)中。该网站在intranet环境下运行良好,但最近以公共域名在Internet上发布。RedirectToAction仍然针对私有IP,导致重定向到登录页面。在哪里可以指定更改

对于notAnExpert请愿书,我的代码摘录。这里没有什么特别之处,只有默认约定:

return RedirectToAction(string.Format("Details/{0}", CampaignId), "Campaigns");  
在my Global.asax中:

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
        );

    }

我的错伙计们,在我看来

 <form action=<% Request.URL %>

您能否发布代码说明重定向操作的外观。或者,您可能需要查看您的RouteHandler