IE8正式版引发VS2005和VS2008添加变量向导出错的解决方案
编程专栏 2010-07-05 13:59:46 阅读827 评论1 字号:大中小 订阅
当中vs 2005或者vs 2008编写程序使用向导添加成员变量是会出现如下错误:
路径指向添加变量向导的网页,如下:
即:C:/Program Files/Microsoft Visual Studio 9.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/2052/default.htm
D:/Program Files/Microsoft Visual Studio 9.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/2052/default.htm
file:///D:/Program Files/Microsoft Visual Studio 9.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/2052/default.htm
解决办法1:
卸载IE8
解决办法2:(自己使用的方法)
打开注册表编辑器
选择“HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet
Settings/Zones“ (如果该项中没有名为1000的项,则建一个key名为1000)
在1000中建一个DWORD属性如下:
Name = 1207
Type = REG_DWORD
Data = 0x000000
完成,如果操作真确则可以顺利使用
正确的图
Walkaround for Error : An add-on for this website failed to run. When opening Visual C++'s Add Variable Wizard after IE 8 is installed
Download: http://jiangsheng.net/Documents/IE8AddZone.zip
Prerequisite: Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
This program is designed to temporary circumvent the "An add-on for this web site failed to run. Check the security settings in Internet options for potential conflicts" error after installing IE8. For more details about this problem, visit https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=425510
Update: the VC team's workaround is at http://blogs.msdn.com/vcblog/archive/2009/03/28/some-vs2005-and-vs2008-wizards-pop-up-script-error.aspx. However, I still suggest copying other settings from a restricted zone before modify the 1207 key.
Clicking the create button will create another Internet Explorer security zone with the id 1000 that will affect all urls not included in other zones. This will allow separate security settings for webbrowser control hosting application such as Visual Studio. If settings are copied from a trusted configuration such as "my computer",a webbrowser control hosting application may not experience the aforementioned error.
Security Remarks: do not visit unsecured web site or use email software on the same computer after creating the new zone as the security impact of the new zone is not yet tested. Applications that host webbrowser control should implement their own security manager if they want to run ActiveX in the browser control.
If you received a fix from the IE team for this problem, please delete the zone created by this problem by clicking the delete button. Visit https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=425510 for the status of this problem.
For more information about adding zones to IE, visit http://www.nthelp.com/50/addazone.htm .
For more information about Internet Explorer security zones, visit http://support.microsoft.com/kb/182569
For more information about Visual C++ wizards, visit http://msdn.microsoft.com/en-us/library/aa730846(VS.80).aspx
Suspicious url actions from Regmon logs:
2700 URLACTION_INPRIVATE_BLOCKING (Don’t think Visual Studio know what is the private mode)
2106 URLACTION_FEATURE_DATA_BINDING (a lot of these in the registry log)
1207 URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION (not sure what this is doing, but it is the only one between URLACTION_ACTIVEX_MIN and URLACTION_ACTIVEX_MAX)
160A URLACTION_HTML_INCLUDE_FILE_PATH
D:/Program Files/Microsoft Visual Studio 9.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/2052/default.htm
file:///D:/Program Files/Microsoft Visual Studio 9.0/VC/VCWizards/CodeWiz/MFC/Variable/HTML/2052/default.htm
解决办法1:
卸载IE8
解决办法2:(自己使用的方法)
打开注册表编辑器
选择“HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet
Settings/Zones“ (如果该项中没有名为1000的项,则建一个key名为1000)
在1000中建一个DWORD属性如下:
Name = 1207
Type = REG_DWORD
Data = 0x000000
完成,如果操作真确则可以顺利使用
正确的图
Walkaround for Error : An add-on for this website failed to run. When opening Visual C++'s Add Variable Wizard after IE 8 is installed
Download: http://jiangsheng.net/Documents/IE8AddZone.zip
Prerequisite: Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
This program is designed to temporary circumvent the "An add-on for this web site failed to run. Check the security settings in Internet options for potential conflicts" error after installing IE8. For more details about this problem, visit https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=425510
Update: the VC team's workaround is at http://blogs.msdn.com/vcblog/archive/2009/03/28/some-vs2005-and-vs2008-wizards-pop-up-script-error.aspx. However, I still suggest copying other settings from a restricted zone before modify the 1207 key.
Clicking the create button will create another Internet Explorer security zone with the id 1000 that will affect all urls not included in other zones. This will allow separate security settings for webbrowser control hosting application such as Visual Studio. If settings are copied from a trusted configuration such as "my computer",a webbrowser control hosting application may not experience the aforementioned error.
Security Remarks: do not visit unsecured web site or use email software on the same computer after creating the new zone as the security impact of the new zone is not yet tested. Applications that host webbrowser control should implement their own security manager if they want to run ActiveX in the browser control.
If you received a fix from the IE team for this problem, please delete the zone created by this problem by clicking the delete button. Visit https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=425510 for the status of this problem.
For more information about adding zones to IE, visit http://www.nthelp.com/50/addazone.htm .
For more information about Internet Explorer security zones, visit http://support.microsoft.com/kb/182569
For more information about Visual C++ wizards, visit http://msdn.microsoft.com/en-us/library/aa730846(VS.80).aspx
Suspicious url actions from Regmon logs:
2700 URLACTION_INPRIVATE_BLOCKING (Don’t think Visual Studio know what is the private mode)
2106 URLACTION_FEATURE_DATA_BINDING (a lot of these in the registry log)
1207 URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION (not sure what this is doing, but it is the only one between URLACTION_ACTIVEX_MIN and URLACTION_ACTIVEX_MAX)
160A URLACTION_HTML_INCLUDE_FILE_PATH