IE7 and VS2005#

I was working on a sample application to demostrate Compact Framework 2.0 new COM Interop feature which was going to be a managed application calling a COM component.  I needed to create the COM component but when I tried to create any Smart Device C++ project I would get a "project creation failed error" and the following script error

I had no idea what this error was and I knew it worked before and this was the first time I tried to create a C++ project after I installed IE7 so that must have been the culprit. 

Not wanting to uninstall IE7 because I have gotten used to it and like it, I did a little research and thanks to Amit Chopra there is a workaround for this.

<NOTE>This involves modifying the registry so do at you own risk.</NOTE>

  1. Close VS
  2. Start RegEdit.exe
  3. Find the following registry entry:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved
  4. Add a new entry and name it
    {D245F352-3F45-4516-B1E6-04608DA126CC} 
  5. Close RegEdit
  6. Start VS
  7. Try and create a Smart Device C++ project

Once you complete the above you will be able to see the wizard popup.   But when you are asked to selected an SDK you will notice there is nothing in the list.  There are items available you will just not see it.  Just click on the ListBox and navigate using your keyboard, you will notice the groupbox below the listbox changes.


Thursday, March 16, 2006 12:00:14 PM (Eastern Daylight Time, UTC-04:00) #    Comments [5]  | 

 

Thursday, May 04, 2006 8:21:24 PM (Eastern Daylight Time, UTC-04:00)
Many thanks for this.
I tried it and at first it did not work. I had copied and pasted the GUID into the registry editor. At first it did not work, because there is a space character after the GUID on the page. After I renamed the registry key to remove the space character, i was able to create the project.

Cheers
Ronny
Monday, June 26, 2006 6:22:29 PM (Eastern Daylight Time, UTC-04:00)
Man, that totally worked! How in the crap did you know how to do that??
Friday, October 06, 2006 4:48:17 PM (Eastern Daylight Time, UTC-04:00)
MANY THANKS !!!

I was looking for an hour on the web till now I got it working again.

I have IE7 Release Candidate 1 installed and even there the error STILL EXITS!
Imagine that nobody an MS concerned about this and fixed this problem.

Sven
shaper
Sunday, November 12, 2006 4:43:37 AM (Eastern Standard Time, UTC-05:00)
Thanks a lot.

I have disappointed when I had known VS2005 and IE7 has this problem.
Because I must create Smart Device Project at work and I'm used to IE7 already...
But, I finally found this post after seeking around the web for a couple of days...
I'm happy now for being able to use both VS2005 and IE7.~

Thank you Mark.

Sangho the AccGeON.
Wednesday, January 17, 2007 3:43:42 AM (Eastern Standard Time, UTC-05:00)
Thank a lot for this post.
But how do you fix that can't see SDK ListBox ?
It's that have any effect?
If I install new SDK like mobile5.0 ppc for vs2005, can I use that sdk normally?
Thank you very much.....
Comments are closed.
All content © 2008, Mark Arteaga
On this page
Related Sites
Archives
Sitemap
Disclaimer

Powered by: newtelligence dasBlog 1.9.7174.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts