ASP.net MVC中的命名空间更改

时间:2013-12-13 03:51:16

标签: asp.net-mvc namespaces

当我更改项目的命名空间时,我遇到了以下运行时错误。我想更改命名空间,因为我想使用与项目命名空间相同的名称模型。

Multiple types were found that match the controller named 'Schedule'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.

The request for 'Schedule' has found the following matching controllers:
Schedule.Schedule.ScheduleController
Schedule_Dt.ScheduleController 

我想删除namespance'Schedule'。我怎样才能做到这一点?谢谢大家。

0 个答案:

没有答案