Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/317.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.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
C# 命名空间“microsoft.web”中不存在类型或命名空间名称“web pages”_C#_Asp.net_Asp.net Mvc - Fatal编程技术网

C# 命名空间“microsoft.web”中不存在类型或命名空间名称“web pages”

C# 命名空间“microsoft.web”中不存在类型或命名空间名称“web pages”,c#,asp.net,asp.net-mvc,C#,Asp.net,Asp.net Mvc,我被困在我的项目与上述错误。我已多次尝试复制local=true和true,但它无法解决我的问题。我还有其他类似的错误,如下所示: The type or namespace name 'Transcations' does not exist in the namespace 'system' the type or namespace name 'web matrix' does not exist in the namespace 'system' the type or namesp

我被困在我的项目与上述错误。我已多次尝试复制local=true和true,但它无法解决我的问题。我还有其他类似的错误,如下所示:

The type or namespace name 'Transcations' does not exist in the namespace 'system'

the type or namespace name 'web matrix' does not exist in the namespace 'system'

the type or namespace name 'optimization' does not exist in the namespace 'system.web'

Error   18  The type or namespace name 'IMigrationMetadata' could not be found (are you missing a using directive or an assembly reference?)

Error   23  The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?)

Error   2   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Error   3   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)  

Error   4   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Error   6   The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
还有更多

我有所有的nuget软件包。请帮助我。

如果您查看,System.Data.Entity命名空间包含在EntityFramework.dll程序集中。在VisualStudio中打开并运行此命令以通过NuGet进行安装

Install-Package EntityFramework 

我没有遗漏任何using指令,错误出现在如此多的文件中,这就是为什么我不能将它们粘贴到这里!谢谢,我已经安装了它,我应该如何处理其他错误?比如:web安全、OAuthwebsecurity、网页、web矩阵、优化等等!请阅读我的答案,看看我使用的推理路线。我首先查看了MSDN上的文档,以查看我要查找的名称空间中包含哪些项的程序集。然后我在NuGet中搜索合适的包,然后安装它。对于剩余的错误,您应该尝试此过程。如果包不在NuGet中,那么在VS中右键单击项目时,请尝试使用添加引用选项。此外,请检查using语句的大小写以确保它们正确。谢谢,我几乎已删除了所有错误,但面临两个错误:1错误2找不到类型或命名空间名称“HttpConfiguration”是否缺少using指令或程序集引用?2错误1命名空间“System.Web”中不存在类型或命名空间名称“Http”,以及一个警告:警告3发现它们之间存在冲突无法解析同一从属程序集的不同版本。当日志详细性设置为时,这些引用冲突将列在生成日志中detailed@EM923System.Web.Http似乎在NuGet包中。对于相互冲突的依赖程序集版本,这是一个单独的问题,您应该在无法解决它后发布一个新问题。确保在新问题中提供足够的细节。