没有类型发现匹配控制器名为'MVCRDEByUser'

默默狮 2013-07-30 01:06:46
在mvc4中运行api出现错误为:
Message: "No HTTP resource was found that matches the request URI 'http://localhost:42861/api/MVCRDEByUser?rid=r1&tid=Xm_sb_zjk&usercode=80081'.",
MessageDetail: "No type was found that matches the controller named 'MVCRDEByUser'."

api为:
public IQueryable<MVC_RDEByUser_sel_Result> GetAll(string UserCode, string Rid, string Tid)
{
BPM_V4_STAEntities ef = new BPM_V4_STAEntities();
IQueryable<MVC_RDEByUser_sel_Result> ctm = ef.MVC_RDEByUser_sel(UserCode, Rid, Tid).OrderBy(c=>c.SID).AsQueryable<MVC_RDEByUser_sel_Result>();
return ctm;
}


编译的时候是通过的,希望各位大侠帮帮忙!
...全文
179 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
默默狮 2013-08-23
  • 打赏
  • 举报
回复
删掉重建,或者先清理解决方案,再生成解决方案!

1,979

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧