前面有一段时间没有写博客,然后过完年想继续用WLW的时候,出现问题了。

An unexpected error occurred while attempting to detect weblog settings:Unable to cast COM object of type ‘mshtml.HTMLMetaElementClass’ to interface type ‘mshtml.IHTMLElement’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0×80004002 (E_NOINTERFACE)).

经过了千辛万苦才找到解决方法,赶紧记下来。将以下代码放在reg文档里,然后双击注入注册表就行了。Thank God!

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}]
@="IHTMLElement" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}\ProxyStubClsid]
@="{00020424-0000-0000-C000-000000000046}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}\TypeLib]
@="{3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}"
"Version"="4.0"
05-07 15:07