{"id":704,"date":"2014-06-28T10:57:31","date_gmt":"2014-06-28T10:57:31","guid":{"rendered":"http:\/\/blog.silverterra.net\/?p=704"},"modified":"2014-06-28T11:00:48","modified_gmt":"2014-06-28T11:00:48","slug":"mshtml-invalidcastexception-issue","status":"publish","type":"post","link":"https:\/\/blog.silverterra.net\/?p=704","title":{"rendered":"mshtml InvalidCastException issue"},"content":{"rendered":"<blockquote><p>Goal: to solve mshtml issue<\/p><\/blockquote>\n<p>When I use a webBrowser control in my .net application and I try to work with the control, sometimes I&#8217;ve got the following error.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/2014\/06\/InvalidCastException.jpg\" alt=\"InvalidCastException\" width=\"799\" height=\"168\" class=\"alignnone size-full wp-image-705\" srcset=\"https:\/\/blog.silverterra.net\/wp-content\/uploads\/2014\/06\/InvalidCastException.jpg 799w, https:\/\/blog.silverterra.net\/wp-content\/uploads\/2014\/06\/InvalidCastException-300x63.jpg 300w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<blockquote><p>System.InvalidCastException: Unable to cast COM object of type &#8216;System.__ComObject&#8217; to mshtml. &#8230;<\/p><\/blockquote>\n<p>May be the message will be different but the reason is the same. The Microsoft.mshtml.dll is not registered!<\/p>\n<pre data-enlighter-language=\"php\" class=\"EnlighterJSRAW\">\r\nRegasm Microsoft.mshtml.dll\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Goal: to solve mshtml issue When I use a webBrowser control in my .net application and I try to work with the control, sometimes I&#8217;ve got the following error. System.InvalidCastException: Unable to cast COM object of type &#8216;System.__ComObject&#8217; to mshtml. &#8230; May be the message will be different but the reason is the same. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-704","post","type-post","status-publish","format-standard","hentry","category-net"],"_links":{"self":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=704"}],"version-history":[{"count":1,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":706,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/704\/revisions\/706"}],"wp:attachment":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}