无法加载文件或程序集'Microsoft.Office.Interop.Excel,Version = 10.0.4504.0 [英] Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=10.0.4504.0

查看:380
本文介绍了无法加载文件或程序集'Microsoft.Office.Interop.Excel,Version = 10.0.4504.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照Windows HCK用户指南(HCK 8.1)生成Excel汇总结果


命令路径是"Windows HCK用户指南"\技术参考\ HCK工具\ HCK Studio \结果选项卡\分析测试结果"


我已安装Office 2010,HCK 8.1。  操作系统是服务器2012。


执行此命令后:


" New-HwCertTestCollectionExcelReport(" C:\Temp \merged_1.xml"," C:\Temp \merged_2.xml")-ExcelPath' c:\ temp \report.xls'-ResultCount 1
"



< span lang ="EN-US"style ="font-family:'Calibri','sans-serif'">发生以下错误:


<小号pan lang ="EN-US"style ="font-family:'Calibri','sans-serif';颜色:#002060"> New-HwCertTestCollectionExcelReport:无法加载文件或程序集'Microsoft.Office.Interop.Excel,


Version = 10.0.4504.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其中一个依赖项。系统不能


找到指定的文件。


在线:1字符:1


+ New-HwCertTestCollectionExcelReport(" C:\Temp \merged_1.xml"," C:\Temp \merged_2.x ...


+ ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~


    + CategoryInfo          :NotSpecified:(:) [New-HwCertTestCollectionExcelReport],FileNotFoundException


    + FullyQualifiedErrorId:System.IO.FileNotFoundException,Microsoft.Windows.Kits.Hardware.Certification.NewHwCertT


   estCollectionExcelReportCmdlet

解决方案

请确认您已正确设置,如
http://msdn.microsoft.com/en-us/library/windows/hardware /dn247574.aspx
并运行32位版本的PowerShell,如
中所述 http://technet.microsoft.com/en-us/library/hh847733.aspx

I'm following Windows HCK User's Guide (HCK 8.1) to generate Excel aggregated results

The command path is "Windows HCK User's Guide \ Technical Reference \ HCK Tools \ HCK Studio \ Results Tab \ Analyze test result"

I've installed Office 2010, HCK 8.1. OS is server 2012.

After execute this command:

"New-HwCertTestCollectionExcelReport ("C:\Temp\merged_1.xml", "C:\Temp\merged_2.xml" ) -ExcelPath 'c:\temp\report.xls' -ResultCount 1 "

The following error occurs:

New-HwCertTestCollectionExcelReport : Could not load file or assembly 'Microsoft.Office.Interop.Excel,

Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot

find the file specified.

At line:1 char:1

+ New-HwCertTestCollectionExcelReport ("C:\Temp\merged_1.xml", "C:\Temp\merged_2.x ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [New-HwCertTestCollectionExcelReport], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Kits.Hardware.Certification.NewHwCertT

   estCollectionExcelReportCmdlet

解决方案

Please verify that you are setup correctly as noted in http://msdn.microsoft.com/en-us/library/windows/hardware/dn247574.aspx and are running the 32-bit version of PowerShell as noted in http://technet.microsoft.com/en-us/library/hh847733.aspx


这篇关于无法加载文件或程序集'Microsoft.Office.Interop.Excel,Version = 10.0.4504.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆