比尔茨

导航

安装Oxite时需要的问题

呵呵,第一次在这里发博客,记录一下今天在安装Oxite时遇到的问题。

先说说我的安装环境,是VS2010,MVC2.0。而Oxite好像是用MVC1.0发布的吧,所以在安装的过程出现了好多的问题。

第一:Oxite.Mvc.Infrastructure.OxiteControllerFactory中出现问题,由于MVC1.0中IController GetControllerInstance中只有一个参数,而在MVC2.0中需要两个参数IController GetControllerInstance(System.Web.Routing.RequestContext requestContext,Type controllerType)。具体老赵里这有一编文章的http://www.cnblogs.com/JeffreyZhao/archive/2009/08/18/asp-net-mvc-defaultcontrollerfactory-thread-unsafe.html,可以看到的。

第二:MVC1.0中System.Web.Mvc.MvcHtmlString扩展方法是直接返回string的,而在MVC2.0中是不能返回string的,所以需要写toHTMLstring().

posted on 2011-04-28 15:26  比尔茨  阅读(279)  评论(0编辑  收藏  举报