Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/276.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# 编译时出错:无法加载文件或程序集';office,版本=14.0.0.0_C#_Asp.net_Vb.net_Visual Studio 2010 - Fatal编程技术网

C# 编译时出错:无法加载文件或程序集';office,版本=14.0.0.0

C# 编译时出错:无法加载文件或程序集';office,版本=14.0.0.0,c#,asp.net,vb.net,visual-studio-2010,C#,Asp.net,Vb.net,Visual Studio 2010,使用VS2010。当我编译我的.NET项目时,我得到了这个错误 Reference.svcmap: Could not load file or assembly 'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXX' or one of its dependencies. The system cannot find the file specified. 我是否必须安装Office版本才能使其消失?我在we

使用VS2010。当我编译我的.NET项目时,我得到了这个错误

Reference.svcmap: Could not load file or assembly 'office, Version=14.0.0.0, 
Culture=neutral, PublicKeyToken=XXXXXXX' or one of its dependencies. 
The system cannot find the file specified.
我是否必须安装Office版本才能使其消失?我在web.config中注释掉了以下几行,但错误不断出现

 <!--<add assembly="office, Version=14.0.0.0, Culture=neutral,
      PublicKeyToken=XXXXXXX"/>
 <add assembly="Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral,
      PublicKeyToken=XXXXXXXXX"/>-->

提前谢谢你