Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am stuck at running this ArcGIS Engine Sample code, when I get:


I'm looking for any working example of Symbol Selector.

I'm working on XP SP3, ArcGIS 10.1 and ArcGIS Engine 10.1

share|improve this question
up vote 2 down vote accepted

I also get an error when attempting to click the context menu item in the sample:

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
'MapControlAppPropertyPage.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\\System.Configuration.dll'
Creating an instance of the COM component with CLSID {F9043C85-F6F2-101A-A3C9-08002B2F49FB} from the IClassFactory failed due to the following error: 80040112.
The thread '' (0x4d8) has exited with code 0 (0x0).

It sounds from the comment on your SO question that this just comes down to the sample relying on a really old 3rd party library (PropertyPages.dll) that has since been broken by 1 or more security patches.

If someone with C++ experience took the time they could probably recompile the DLL from the provided source code to make the sample work, but it's probably unnecessary. You can create property pages without it, so I'm not sure why it's used in this case.

You could also just look at the source code and the designer to get an idea of how it is supposed to work.

share|improve this answer
Thanks a lot for the test, i was wondering if the bug happens just in my case. Concerning properety pages i'm steel newbie i will use them for the 1st time, i have browsed the code, but i don't know how i could get ride of this dll and resolve the problem. – geogeek Oct 21 '12 at 9:52
There's another sample here that uses property pages without it: Layer property page and property sheet – blah238 Oct 21 '12 at 18:25
Oh that sample is for Desktop, I'm not sure if it can be adapted to Engine (you'd probably have to remove the Framework, ArcMapUI and CartoUI references and strip out functionality relying on them). – blah238 Oct 21 '12 at 18:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.