Rexiology::Work

Microsoft, Information Technologies...

Community

News

  • From Taiwan, living and working at Tokyo, Japan.

Recent Posts

Tags

Microsoft Sites

Other Sites

Blog pools

Bloggers

My other places

Archives

Site Info



Locations of visitors to this page




Logos & Chicklets


GeoURL


Rex's Certifications
Rex's Certifications


Creative Commons授權條款
本 著作 係採用
Creative Commons 授權條款



VS2008, C++ Project, WinSxS requestedPrivileges error…

crosspost from http://blogs.msdn.com/rextang

Got a task to write a native ActiveX control to run under IE7 for testing the security context when the ActiveX control creating another process to run a WinForm application.

It’s pretty easy to create an  ActiveX control using .NET, but this time I have to use native C++ code. been a long time not writing those stuffs, got a tough learning curve to get those thing back last week.

Am going to take the shortest path of using ATL to create ActiveX control under VS2008 C++ ATL Project. following the ATL Tutorial and it also pointed out another MFC example TstCon (ActiveX Control Test Container) for testing the control without using a browser. followed the instructions to build the TstCon example and when going to run it, got the following error:

The application had failed to start because uts side-by-side configuration is incorrect. Please see the application event log for more detail.

By looking to Application event log, got the error as following:

Activation context generation failed for "C:\path-to\TstCon32.exe".Error in manifest or policy file "C:\path-to\TCProps.DLL" on line 1. The requestedPrivileges element is not allowed in component manifest.

by searching the internet, found the info about this problem also got a solution for this. by turning off the UAC linker option (Enable User Account Control (UAC), the /MANIFESTUAC option) that’s defaultly Yes to No, and rebuild the application, the error is vanished the the TstCon application started.

Now I can continue testing my ActiveX control…

FYI.

Comments

Rexiology::Work said:

crosspost from http://blogs.msdn.com/rextang What if you had written an native ATL ActiveX control and

# August 5, 2008 8:59 AM