Sheng Jiang

A Microsoft MVP in Visual C++

Home     Contact Me     About Me     Site Map     News     Blog     Where is the forum for      
November 10

Visual Studio 2010: Class Wizard重返Visual C++... Control Shift X.

image

在消失4个版本之后,类向导终于重返Visual C++。新的功能:搜索现在可以部分匹配而不是从字符串开始匹配。

测试版还是存在一些问题,向导不是总能找到现存的函数,以致删除函数功能不是总有效。在打开很多文档的时候尝试打开Class Wizard会出现“value does not fall in expected range” 错误。再就是性能问题,打开的文档越多,类向导启动所需的时间就越长。



4:03 PM GMT  |  Read comments(8)

May 19

the Windows Server 2008 SP2 and Windows Vista SP2 Beta program has concluded.

Nice run

uninstalling pre-release SP and installing the RTM version…



7:22 AM GMT  |  Read comments(0)

May 03

Talking about Windows XP APIs

 

Quote

 



8:09 AM GMT  |  Read comments(0)

March 24

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


2:05 PM GMT  |  Read comments(25)

February 14

415 Unsupported Media Type when WSE is NOT configured

I have a web service that runs fine on my Windows XP. However, when I deploy to the production server, the web service returns 415 Unsupported Media Type when calling.

I have seen this error when WSE is not enabled on the client. The problem is, the web service is NOT using WSE. so I did the usual, uninstall ASP.Net, reinstalling, adding asmx extension to IIS, same error.

Now I need to fire a debugger to see what’s going on. Surprisingly, Microsoft.Web.Services3.dll is loaded even when there is no trace of it in my projects. Now I probably know what’s going on. There is another web service in a different virtual directory that uses WSE.

OK, I will isolate my web service to a new application pool. Well, that does not help. In the end I have to add WSE configuration to both my web service and my Windows client.

7:22 AM GMT  |  Read comments(3)