{"id":4563,"date":"2009-03-28T14:28:00","date_gmt":"2009-03-28T14:28:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2009\/03\/28\/some-vs2005-and-vs2008-wizards-pop-up-script-error\/"},"modified":"2019-02-18T18:45:57","modified_gmt":"2019-02-18T18:45:57","slug":"some-vs2005-and-vs2008-wizards-pop-up-script-error","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/some-vs2005-and-vs2008-wizards-pop-up-script-error\/","title":{"rendered":"Some VS2005 and VS2008 Wizards Pop Up Script Error."},"content":{"rendered":"<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\">Visual C++ team has discovered that after installing the current release of Internet Explorer (Internet Explorer 8), some VC++ wizards do not function correctly.&nbsp; The products affected are Visual Studio 2005 and Visual Studio 2008.&nbsp; Following are the affected wizards:<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Add Function<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Add Variable<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Smart Device &ndash; New Project Creation<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Smart Device &ndash; Add Class<\/font><\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\">Invoking any of the above wizards in VS2005 or VS2008 will pop up a script error if IE8 is installed on the machine.&nbsp; We have a workaround for those who have encountered this error.<\/font><\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\">Please follow the following steps:<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Open regedit (on a 64-bit OS, open the 32-bit regedit)<\/font><\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Under &ldquo;HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet <br \/>SettingsZones&rdquo;, create a new key called 1000 (if it isn&#8217;t already there)<\/font><\/p>\n<p class=\"MsoNoSpacing\">&nbsp;<\/p>\n<p class=\"MsoNoSpacing\"><span><span><font face=\"Calibri\" size=\"3\">&#8211;<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Under 1000, create a DWORD entry with:<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font size=\"3\">o<\/font><span>&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Name = 1207<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font size=\"3\">o<\/font><span>&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Type = REG_DWORD<\/font><\/p>\n<p class=\"MsoNoSpacing\"><span><span><font size=\"3\">o<\/font><span>&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Data = 0x000000<\/font><\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\">For the workaround to work on VS2005 however, the VS2005 SP1 (and VS2005 SP1 Update for Windows Vista) has to be installed.<\/font><\/p>\n<p class=\"MsoNoSpacing\">\n<p><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Following is a brief explanation of the problem and the workaround:<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">The VC++ Wizards Engine implements the IInternetSecurityManager interface.&nbsp; In this implementation it allows or disallows specific actions under certain policies that Internet Explorer queries it about.&nbsp; In IE8 a custom Security Manager now also gets queried about the URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION policy which IE previously did not delegate to custom security managers when the engine wasn&rsquo;t running in the iexplore.exe process.&nbsp; The IE engine then fails this action because we don&rsquo;t have a policy entry for it in the custom zone for VC++ Wizards. We are still investigating whether this change in IE8 is by design and will possibly be addressing it by a fix in either the Wizard or IE components depending on the outcome.<\/font><\/p>\n<p class=\"MsoNormal\">\n<p><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">The above workaround lets the policy 1207 (URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION) to be allowed in zone 1000 (custom zone of VC++ Wizards engine).&nbsp; This allows the wizard code to work as intended.<\/font><\/p>\n<p class=\"MsoNormal\">\n<p><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<\/p>\n<p class=\"MsoNoSpacing\"><font face=\"Calibri\" size=\"3\">We apologize for the inconvenience this issue may have caused you.<\/font><\/p>\n<p class=\"MsoNormal\">\n<p><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Thank you<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Visual C++ Team<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">______\n____________________________________________________________________________________________________________________________________________________<\/font><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p><font face=\"Calibri\"><\/p>\n<p class=\"MsoNormal\"><font size=\"3\">The Internet Explorer team has released a security update to IE as mentioned in the IE blog:<\/font><\/p>\n<p class=\"MsoNormal\"><a href=\"http:\/\/blogs.msdn.com\/ie\/archive\/2009\/06\/09\/ie-june-09-security-update-now-available.aspx\"><font color=\"#0000ff\" size=\"3\">http:\/\/blogs.msdn.com\/ie\/archive\/2009\/06\/09\/ie-june-09-security-update-now-available.aspx<\/font><\/a><\/p>\n<p class=\"MsoNormal\">\n<p><font size=\"3\">&nbsp;<\/font><\/p>\n<\/p>\n<p class=\"MsoNormal\"><font size=\"3\">This update also fixes the problem that caused some Visual Studio wizards to pop up a script error.&nbsp; After applying this update, the earlier workaround in the registry is no longer required, and the wizards should work fine.<\/font><\/p>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual C++ team has discovered that after installing the current release of Internet Explorer (Internet Explorer 8), some VC++ wizards do not function correctly.&nbsp; The products affected are Visual Studio 2005 and Visual Studio 2008.&nbsp; Following are the affected wizards: &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add Function &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add Variable &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Smart Device &ndash; New Project Creation &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Smart [&hellip;]<\/p>\n","protected":false},"author":289,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus"],"acf":[],"blog_post_summary":"<p>Visual C++ team has discovered that after installing the current release of Internet Explorer (Internet Explorer 8), some VC++ wizards do not function correctly.&nbsp; The products affected are Visual Studio 2005 and Visual Studio 2008.&nbsp; Following are the affected wizards: &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add Function &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add Variable &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Smart Device &ndash; New Project Creation &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Smart [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/4563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/289"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=4563"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/4563\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=4563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=4563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=4563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}