Specifying services in the config file in MCSF

Topics: CAB & Smart Client Software Factory
Jan 4, 2007 at 8:12 PM
I tried to configure services in the CompsiteUI config section and ran into problems. The following configuration gets parsed (I stepped through the code) and ServiceElements are added to the ServiceElementCollection. However the ServiceElements are empty and therefore the services aren't loaded - in fact an exception is thrown. I couldn't quite figure out why when stepping through the code but if someone has encountered a similar problem please let me know!

This is the configuration file I used:

<section name="CompositeUI" type="Microsoft.Practices.Mobile.CompositeUI.Configuration.SettingsSection, Mobile.CompositeUI" />
<add serviceType="STS.ISecureTokenService, MyAssembly"
instanceType="STS.DummySecureTokenService, MyAssembly" />