project处理 InteropServices.COMException 异常

Posted weloveshare

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了project处理 InteropServices.COMException 异常相关的知识,希望对你有一定的参考价值。

project文件无法上传,在上传中的hangfire出现了这个异常
System.Runtime.InteropServices.COMException

这个是因为website的权限是IUser,而DCOM的权限是admin,admin可以操作DCom,但是IUser不可以,所以吧website的权限提升为admin的权限就可以了,但是可能会存在安全隐患的问题

以上是关于project处理 InteropServices.COMException 异常的主要内容,如果未能解决你的问题,请参考以下文章

System.Runtime.InteropServices.ExternalException: GDI+ 中发生一般性错误

你好,请指教: System.Runtime.InteropServices.COMException: 检索 COM 类工厂中 CLSID

无法使用 Interopservices 关闭 excel

使用服务结构时出现 System.Runtime.InteropServices.COMException

如何避免 System.Runtime.InteropServices.COMException?

无法加载文件或程序集“System.Runtime.InteropServices”