今天试了试Asp.net mvc 1.0, 相比较monorail, 易用性好了很多。

更换命名空间错误

本来开始的命名空间是用的WebSiteMVC, 后来想改成WebSite.
应当替换的地方都替换掉了,rebuild后还是出现下面这个错误:
"The controller name 'Home' is ambiguous between the following types: WebSiteMVC.Controllers.HomeController WebSite.Controllers.HomeController."

处理方法是右键点你的项目, 更改assembly中的输出文件名字和命名空间
删除bin目录中所有的dll文件, 重新编译整个项目就可以了。

 

发布遇到的问题

提示没有System.Web.MVC

将下面文件夹中的文件copy放到项目中的bin目录下就可以了。

C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies

相关文章:

  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
猜你喜欢
  • 2021-12-11
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案