{00024500-0000-0000-C000-000000000046} ...800703fa 试图在标记为删除的注册表项上进行不合法的操作。 (异常来自 HRESULT:0x800703FA)

项目在IIS发布运行半年一直很稳定,但最近客户说excel导出崩溃了,远程过去得到标题所示报错。

首先前面那一坨就是excel的注册表标识了,但是关键问题是后面的:0x800703fa错误码:

没有翻墙用万能的google,用百度也是查到国际友人方面提供了msdn里关于重启后有些com+会掉权限,进而会引发上述错误代码的报错。msdn里面描述的解决方案如下:

Resolution 
As a workaround it may be necessary to disable this feature which is the default behavior. The policy setting 'Do not forcefully unload the user registry at user logoff' counters the default behavior of Windows 2008. When enabled, Windows 2008 does not forcefully unload the registry and waits until no other processes are using the user registry before it unloads it.

The policy can be found in the group policy editor (gpedit.msc) 
Computer Configuration->Administrative Templates->System-> UserProfiles 
Do not forcefully unload the user registry at user logoff

Change the setting from “Not Configured” to “Enabled”, which disables the new User Profile Service feature.

'DisableForceUnload' is the value added to the registry


问客户确实是刚刚重启了,于是按照上述对服务器进行相关设置,在客户64位的机器上通过comexp.msc -32访问到excel所在的组件服务管理,保险起见把对应的权限给了network service。

最后重启服务器后,excel得以正常导出。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值