80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE))

跟風遠走 提交于 2019-12-01 23:33:51

It was an Issue due to Permission. IIS_User was not having permission to Access to Create Instance.

Updated Administrator Credential to App Pool and Problem was resolved.

I received the same error below.

System.Runtime.InteropServices.COMException (0x80040111): Retrieving the COM class factory for component with CLSID {0B92B777-B6AD-435C-B9FD-804878C36E55} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).

In my case, re-registering it several times with the following command resolved the issue.

regsvr32 {yourdllpath}\{yourdllfilename}

This can also happen if you're running the Command DOS prompt, without Administrator rights.

Click START -> CMD -> Right click the Command option shown -> RUN AS ADMINISTRATOR -> go to your DLL location or better still place it in c:\windows\system32 or \sysWOW64 -> regsvr32 .\yourdll.dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!