System.Runtime.InteropServices.COMException (0x80010001): 检索 COM 类工厂中 CLSID 为 {91493441-5A91-11CF-8700-00AA0060263B} 的组件时失败,原因是出现以下错误: 80010001。
在 PptHelper.Ppt_Creator_Module(ArrayList idArr) 位置 d:\Inetpub\wwwroot\Shoping\App_Code\PptHelper.cs:行号 320
================================= PowerPoint.ApplicationClass app=null;
PowerPoint.Presentation pre = null;
GC.Collect(); ...
已经在程序中加入了
NAR(pre);
NAR(app);
System.Runtime.InteropServices.Marshal.ReleaseComObject(app); /// <summary>
/// 清除对象
/// </summary>
/// <param name="o">对象 </param>
private void NAR(Object o)
{
try
{
System.Runtime.InteropServices.Marshal.ReleaseComObject(o);
GC.Collect();
}
catch { }
finally { o = null; }
} 但错误依然存在,杀掉进程后就恢复正常,但过10分钟后又出现问题同样的问题
在此句报错 App = new PowerPoint.ApplicationClass();还请大家帮忙看看,谢谢!
在 PptHelper.Ppt_Creator_Module(ArrayList idArr) 位置 d:\Inetpub\wwwroot\Shoping\App_Code\PptHelper.cs:行号 320
================================= PowerPoint.ApplicationClass app=null;
PowerPoint.Presentation pre = null;
GC.Collect(); ...
已经在程序中加入了
NAR(pre);
NAR(app);
System.Runtime.InteropServices.Marshal.ReleaseComObject(app); /// <summary>
/// 清除对象
/// </summary>
/// <param name="o">对象 </param>
private void NAR(Object o)
{
try
{
System.Runtime.InteropServices.Marshal.ReleaseComObject(o);
GC.Collect();
}
catch { }
finally { o = null; }
} 但错误依然存在,杀掉进程后就恢复正常,但过10分钟后又出现问题同样的问题
在此句报错 App = new PowerPoint.ApplicationClass();还请大家帮忙看看,谢谢!
会自动创建进程,可能更进程有关系。
帮楼主顶了。