Visual Studio 2008和IE8冲突解决 Add Function/Add Variable/Smart Device项目建立等
2011-01-09 15:25
507 查看
使用Visual Studio 2008的MFC Wizard遇到问题:
弹出一个IE的错误,无法使用向导。file:///C:/Program%20Files/Microsoft%20Visual%20Studio%209.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/1033/default.htm
另外:Smart Device的项目也无法建立。
网上找了一大圈:使用微软官方提供的Workaround,添加一个注册表项可以解决原文链接:http://blogs.msdn.com/b/vcblog/archive/2009/03/28/some-vs2005-and-vs2008-wizards-pop-up-script-error.aspx
Some VS2005 and VS2008 Wizards Pop Up Script Error.
Visual C++ team has discovered that after installing the current release of Internet Explorer (Internet Explorer 8), some VC++ wizards do not function correctly. The products affected are Visual Studio 2005 and Visual Studio 2008. Following are the affected wizards:- Add Function
- Add Variable
- Smart Device – New Project Creation
- Smart Device – Add Class
Invoking any of the above wizards in VS2005 or VS2008 will pop up a script error if IE8 is installed on the machine. We have a workaround for those who have encountered this error.
Please follow the following steps:
- Open regedit (on a 64-bit OS, open the 32-bit regedit)
- Under “HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet
Settings/Zones”, create a new key called 1000 (if it isn't already there)
- Under 1000, create a DWORD entry with:
o Name = 1207
o Type = REG_DWORD
o Data = 0x000000
For the workaround to work on VS2005 however, the VS2005 SP1 (and VS2005 SP1 Update for Windows Vista) has to be installed.
Following is a brief explanation of the problem and the workaround:
The VC++ Wizards Engine implements the IInternetSecurityManager interface. In this implementation it allows or disallows specific actions under certain policies that Internet Explorer queries it about. 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’t running in the iexplore.exe process. The IE engine then fails this action because we don’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.
The above workaround lets the policy 1207 (URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION) to be allowed in zone 1000 (custom zone of VC++ Wizards engine). This allows the wizard code to work as intended.
We apologize for the inconvenience this issue may have caused you.
Thank you
Visual C++ Team
相关文章推荐
- Visual Studio 2008和IE8冲突解决 Add Function/Add Variable/Smart Device项目建立等
- VS2008创建Silverlight项目出错的解决办法--安装Visual Studio 2008的Silverlight 1.1 Tools Alpha无法创建Silverlight项目
- Visual Studio 2008 / VS2008 (团队开发版 Team) 在项目启动与调试结束时的卡死/假死/闪烁现象的解决方法
- 图文解释Visual Studio 2008 建立CUDA 项目
- 图文解释Visual Studio 2008 建立CUDA 项目
- 在VB9中解决多行的Function问题(Visual Studio 2008)
- Visual Studio 2008 项目模板丢失的解决方法
- Visual Studio 2008项目中WinForm窗体图标显示为类图标,只能打开代码而无法打开视图问题解决
- “Visual Studio 2008 + IE8下,为MFC工程对话框资源添加类时发生错误”问题的解决办法
- Visual Studio 2008项目中WinForm窗体图标显示为类图标,只能打开代码而无法打开视图问题解决
- Visual Studio 2008 Beta2 起始页中 不显示(Recent Projects)最近使用的项目问题,解决办法。
- VS2008创建智能设备项目与IE8冲突的解决
- Visual Studio 2008无法创建智能设备项目的解决方法
- Visual Studio 2008 测试项目无法正常显示解决办法
- 解决 Visual Studio 打开项目 “Project could not be opened because Microsoft Visual C# 2008 compiler could not be created” 报错
- 解决 Visual Studio 打开项目 “Project could not be opened because Microsoft Visual C# 2008 compiler could not be created” 报错
- VS2008创建智能设备项目与IE8冲突的解决
- 解决Office 2007和Visual Studio 2008冲突不兼容的问题
- 解决 Visual Studio 打开项目 “Project could not be opened because Microsoft Visual C# 2008 compiler could not be created” 报错
- 解决Visual Studio 2008来生VisualBasic 项目的性能问题