开发者

ASP .NET MVC and ASPX files Hosting issue on IIS 6

I have a ASP .NET MVC 1.0 application which contains few ASPX files located instead Reports folder (located on root) of application.

My Global.asax c开发者_C百科ontains following lines:

routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" );
routes.IgnoreRoute( "{resource}.aspx/{*pathInfo}" );

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

But when I try to access following URL,

http://xx/Reports/SomeASPXPage.aspx

I get 404 (file not found error).

What I am missing in configuration?

JFYI: IIS 6 is running on Win2K3 box with wild-card mapping enabled.


Google MVC and II6. There are some things you need to include in the global.asax file to get the routing to run under IIS6.

ASP.NET MVC on IIS 6 Walkthrough


Fixed.

There is no issue with ASP .NET MVC configuration; Reporting services was over-riding the Reports directory of the web-app and at host/Reports SQL Server reporting was taking over.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜