System.Runtime.InteropServices.COMException (0x800A03EC)
来源:互联网 发布:酷狗音乐关闭网络功能 编辑:程序博客网 时间:2024/05/18 16:58
Officially Microsoft Office 2003 Interop is not supported on Windows server 2008 by Microsoft.
But after a lot of permutations & combinations with the code and search, we came across one solution which works for our scenario.
The solution is to plug the difference between the way Windows 2003 and 2008 maintains its folder structure, because Office Interop depends on the desktop folder for file open/save intermediately. The 2003 system houses the desktop folder under systemprofile which is absent in 2008.
So when we create this folder on 2008 under the respective hierarchy as indicated below; the office Interop is able to save the file as required. This Desktop folder is required to be created under
C:\Windows\System32\config\systemprofile
AND
C:\Windows\SysWOW64\config\systemprofile
This worked for me...
Also do check if .NET 1.1 is installed because its needed by Interop and ot preinstalled by Windows Server 2008
Or you can also Use SaveCopyas() method ist just take onargument as filename string)
Thanks Guys..!
解决方法如下:
配置好相关目录的读写权限与组件服务管理工具中Excel的相关权限后,需要建立如下两个目录:
C:\Windows\SysWOW64\config\systemprofile\Desktop 和 C:\Windows\SysWOW64\config\systemprofile\Desktop。
- System.Runtime.InteropServices.COMException (0x800A03EC)
- windows server 2008 x6 System.Runtime.InteropServices.COMException (0x800A03EC)處理方法
- 异常详细信息: System.Runtime.InteropServices.COMException: 异常来自 HRESULT:0x800A03EC
- 错误:system.runtime.interopservices.comexception (0x80040154)
- System.Runtime.InteropServices.COMException (0x80028018):
- “System.Runtime.InteropServices.COMException”解决之道
- System.Runtime.InteropServices.COMException解决办法
- System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800AC472
- WIN7SP1 Crystal Reports异常:System.Runtime.InteropServices.ComException(0x800003E7)
- 关于system.runtime.interopservices.comexception(0x800A1066)的问题
- System.Runtime.InteropServices.COMException 6/2
- Visual Studio 2008 System.Runtime.InteropServices.COMException
- 解决System.Runtime.Interopservices.COMException问题
- 解决System.Runtime.Interopservices.COMException问题
- win7+VS2008 System.Runtime.InteropServices.COMException
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E
- System.Runtime.InteropServices.COMException(0x8004020F): The server rejected one or more recipient addresses.
- System.Runtime.InteropServices.COMException (0x8000401A): Retrieving the COM class factory for component with CLSID
- android加载include
- VARIANT中存取数组,本例以BYTE数组为例
- if...else...感言
- YAFFS移植经验总结
- 取得设备上的字符集方法_int GetTextCharset( HDC hdc )
- System.Runtime.InteropServices.COMException (0x800A03EC)
- Android编译系统详解(二)
- Linux字符设备驱动程序编写基本流程
- 人生如戏。分手游戏:伤感日志
- adb shell 命令详解
- 如何把cmd中显示的的内容复制出来?
- 男孩身高体重
- C++深拷贝与浅拷贝
- Android Provision (Setup Wizard)