Getting Depressed : Changing the Initialization Services

Topics: CAB & Smart Client Software Factory
Feb 6, 2007 at 1:20 AM
Hello All,

I am trying to implement my own IAuthentificationService in a separate assembly that will be loaded by my client through the use of the app.config.

For that, I have followed the instructions in the CAB Help : "Changing the Initialization Services".

No way to make it works...no matter what I put in the app.config, it does not seem to work. Even if I mistape the assembly name and/or the namespace, I do not have any error raised during the startup...

Below my changes:

In the App.Config:

<configuration>
<configSections>
<section name="compositeUI" type="Microsoft.ApplicationBlocks.CompositeUI.Configuration.SettingsSection, Microsoft.ApplicationBlocks.CompositeUI"
allowExeDefinition="MachineToLocalUser" />
</configSections>
<compositeUI>
<services>
<add serviceType="Microsoft.ApplicationBlocks.CompositeUI.Services.IAuthenticationService,
Microsoft.ApplicationBlocks.CompositeUI"
instanceType="Indigo.Module1.Services.Class1, Module1" />
</services>
</compositeUI>

</configuration>

Then, I have created a foundational module named Module1 and have added a service which namespace is Indigo.Module1.Services. The service name is Class1.

Class1 implement the IAuthenticationService, with a very simple Authenticate() method that is just performing a MessageBox.Show();.



Can anybody help???

Thanks,

Silat
Feb 6, 2007 at 1:46 PM
Ok, forget it :-) I had an assembly versionning pb :-)