当前位置: 代码迷 >> ASP.NET >> Could not load file or assembly 'Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e94,该怎么处理
  详细解决方案

Could not load file or assembly 'Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e94,该怎么处理

热度:10682   发布时间:2013-02-25 00:00:00.0
Could not load file or assembly 'Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e94
大家好,
为了将数据按excel导出,我在程序中引了Microsoft Office Web components 11.0 (C:\Program Files\Common Files\Microsoft Shared\Web Components\11\OWC11.DLL).
测试时没有问题.但是当我将网站发布到服务器上以后,就出现了该错误:
Could not load file or assembly 'Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

在服务器上我已经安装了Office,在相应文件夹下也找到了OWC11.DLL文件.是不是两个文件版本不一样造成的啊?

兄弟们帮忙看下,谢谢!!

------解决方案--------------------------------------------------------
官方下个owc11.exe
安装看看
------解决方案--------------------------------------------------------
为OWC11.DLL添加ASPNET用户完全控制权限看看
------解决方案--------------------------------------------------------
将OWC11.DLL放到Widows/System32文件夹下面
  相关解决方案