使用IIS 5.1部署MVC3 [英] Deployment of MVC3 with IIS 5.1

查看:90
本文介绍了使用IIS 5.1部署MVC3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI全部


我正在生产在ASP.NET 4.0上创建并托管在IIS 5.1上的产品.
我需要在其中实现新功能,为此新功能,我需要使用MVC3.

我已经成功实现了它,并按照Microsoft在diff IIS版本的MVC部署中的建议进行了部署.

我还在ISAPI筛选器中添加了.*扩展名,但是由于这个原因,作为ASP.NET4.0一部分的tree rad控件没有扩展.当我从ISAPI过滤器中删除.*扩展名时,我的MVC无法正常工作,但树视图开始正常工作.

谁能告诉我我的代码出了什么问题?


以下是Global.asax.cs文件中的代码.

HI All


I am working on production which is created on ASP.NET 4.0 and hosted on IIS 5.1.
I need to implement new feature in it and for this new feature I need to use MVC3.

I have successfully implemented it and also deployed it as suggested by Microsoft in their MVC deploment with diff IIS versions.

I have also added .* extention in ISAPI filters but because of this the tree rad control which is a part ASP.NET4.0 is not expanding. When I am removing .* extension from ISAPI filter then my MVC doesn''t work but Tree view starts working fine.

Can any one tell me what''s going wrong with my code?


Below is the code in Global.asax.cs file.

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

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

        }

推荐答案

我找到了一些有用的链接.

http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html

http://stackoverflow.com/questions/57712/asp-net-mvc-and- iis-5


HTH
I have found some useful links.

http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html

http://stackoverflow.com/questions/57712/asp-net-mvc-and-iis-5


HTH


这篇关于使用IIS 5.1部署MVC3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆