Multiple types were found that match the controller named 'Home'. (weird error)

found the error, because I changed the namespace and assembly name, then on the bin folder the old dll was still there, so it looks like the mvc engine searches for controllers in the entire bin folder。

也就是说报此错误的可能原因是bin目录下有就的dll产生了干扰。

http://stackoverflow.com/questions/23587380/multiple-types-were-found-that-match-the-controller-named-home-weird-error/23665265

Multiple types were found that match the controller named 'Home'. (weird error)

时间: 2024-10-15 02:35:08

Multiple types were found that match the controller named 'Home'. (weird error)的相关文章

MVC 区域内默认控制器不能访问(Multiple types were found that match the controller named ‘Index')

异常处理汇总-后端系列 http://www.cnblogs.com/dunitian/p/4523006.html 错误信息 和主页的默认控制器冲突了,修改下Areas里面的默认控制器就可以了 MVC 区域内默认控制器不能访问(Multiple types were found that match the controller named 'Index')

Multiple actions were found that match the request

Web API错误信息: {"Message":"An error has occurred.","ExceptionMessage":"Multiple actions were found that match the request: \r\nSystem.Collections.Generic.IEnumerable`1[Lybing.Invoice.DataContract.Product] Get(Lybing.Invoic

[GraphQL] Query Lists of Multiple Types using a Union in GraphQL

Unions are used when we want a GraphQL field or list to handle multiple types of data. With a Union Type, we can define a field that could resolve completely different types of data. In this lesson, we will write a query that obtains a list of differ

Multiple actions were found that match the request Web API

在WebAPI工程入口不对外公开的接口不能使用public. [HttpPost] public string PostRequest([FromBody] Model model) { /// } //Validate方法是不对外公布的,得弄成私有的. private bool Validate(Model model) { return true; }

MVC 学习系列-Controller

MVC最核心的也就是Controller了,控制器(controller)在功能中起到了核心功能. 1,)在MVC类库中,根据URL,通过MVCHandler进入MVC处理系统中, 2,)解析初始化对应的Route信息, 3,)在MVCHandler的Begin_RequestHandler函数中,根据URL获取到对应的Controller,和Action, 4,)在执行Controller.Execute之前还需要进行一个验证处理, 5,)之后执行Exceute, 6,)在Execute处理过

使Web API支持namespace

小分享:我有几张阿里云优惠券,用券购买或者升级阿里云相应产品最多可以优惠五折!领券地址:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=ohmepe03 问题描述 假设我有一个应用场景:Core Framework可以用于任何区域的站点,其中的CustomersController有个取customer的fullname的方法GetFullName(),可想而知,这个api在中国和美国的站点上,

ASP.NET MVC 复制MVC项目代码到同一个项目的时候报错The request for ‘home’ has found the following matching controll

ASP.NET MVC 复制MVC项目代码到同一个项目的时候报错The request for 'home' has found the following matching controll "/"应用程序中的服务器错误. Multiple types were found that match the controller named 'home'. This can happen if the route that services this request ('{control

.NET开发 MVC项目 添加Controller出现的错误:无法检索到元数据

ERROR: ---------------------------Microsoft Visual Studio---------------------------无法检索"MvcMusicStore.Models.Album"的元数据.Using the same DbCompiledModel to create contexts against different types of database servers is not supported. Instead, cre

7 Types of Regression Techniques you should know!

7 Types of Regression Techniques you should know! Introduction Linear and Logistic regressions are usually the first algorithms people learn in predictive modeling. Due to their popularity, a lot of analysts even end up thinking that they are the onl