When trying to create an instance of my Controller class I keep getting the error - system.web.mvc.controller is defined in assembly not referenced.
Code:
public void Setup()
{
ProcessController _processController = new ProcessController();
}
@David是正确的,我需要引用System.Web.Mvc
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.