开发者

ASP.NET localhost routing issue

A call to localhost ( using the VS 2008 integrated webserver ) is not working ( empty page.. )

http://localhost:6666

but a call to a remote IIS

http://asdf.com/MyApp

is routed to the correct controler and method (SearchController -> Search )... MyApp is the IIS directory in which the folder "Controller" is...

The routingcode:

        routes.MapRoute(
            "Default",     开发者_StackOverflow社区                                         // Route name
            "{controller}/{action}/{id}",                           // URL with parameters
            new { controller = "Search", action = "Search", id = "" }  // Parameter defaults
        );

How to solve this, so that it's working on both webservers?


Yeah, that's a tricky one, it's gotten me before too. Follow this: http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜