Specifying services in the config file

Topics: Mobile Client Software Factory
Jan 4, 2007 at 8:13 PM
Sorry for the cross-posting (also in the CAB&SCSF forum - meant to be in here)


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:

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