Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net CS0246:类型或命名空间名称';花式';找不到(是否缺少using指令或程序集引用?)_Asp.net_Asp.net Mvc - Fatal编程技术网

Asp.net CS0246:类型或命名空间名称';花式';找不到(是否缺少using指令或程序集引用?)

Asp.net CS0246:类型或命名空间名称';花式';找不到(是否缺少using指令或程序集引用?),asp.net,asp.net-mvc,Asp.net,Asp.net Mvc,我的项目名为FirstTut,我的ViewBag和Html.BeginForm()在使用Microsoft Visual Studio 2015后无法工作,因此我在Views文件夹的webconfig中添加了名称空间 Line 25: using System.Web.Mvc.Html; Line 26: using System.Web.Routing; Line 27: using Fancy.Management.Model; Line 28: using

我的项目名为FirstTut,我的ViewBag和Html.BeginForm()在使用Microsoft Visual Studio 2015后无法工作,因此我在Views文件夹的webconfig中添加了名称空间

Line 25:     using System.Web.Mvc.Html;
Line 26:     using System.Web.Routing;
Line 27:     using Fancy.Management.Model;
Line 28:     using FirstTut;
Line 29: 

////
并将我的cshtml文件中的引用从相应的控制器从
@model.FirstTut.Context.Table_2
更改为
@model FirstTut.Context.Table_2

然后错误行消失了,但现在编译错误向我抛出了一条消息,上面是
CS0246:找不到类型或命名空间名称'Fancy'(是否缺少using指令或程序集引用?

<namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Routing" />
        <add namespace="Fancy.Management.Model" /> ////
        <add namespace="FirstTut" />
</namespaces>