实施BasicAuth,说它缺少BasicAuth?

Jas*_*n94 0 asp.net basic-authentication asp.net-mvc-4

我已经实现了......或者更确切地说是从http://www.asp.net/web-api/overview/security/authentication-and-authorization/basic-authentication复制粘贴的代码,但是当我尝试运行网站时,我得到了这个错误:

Could not load file or assembly 'BasicAuth' or one of its dependencies. The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)

我正在研究这个例子,所以我对这是什么知之甚少,为什么它不起作用?

Lan*_*ayx 6

BasicAuth是应用程序程序集的名称,通常是测试应用程序的名称.您可以在项目属性中进行检查.