Error: injection of service

Topics: CAB & Smart Client Software Factory
Sep 20, 2006 at 11:31 PM
originally posted by: pmelichar1809

I have a problem with injection of service defined in different assembly. If a definition of service with Service attribute is defined and compiled in one assembly then linked into current project and used in code like this:
private AccountWS accountWS;
public AccountWS AccountWS
accountWS = value;

then the dependency injection fails in runtime. If I define service and using in the same assembly everything works. Can you help me? I don't want definition of the service in more then one place in solution.

Sep 21, 2006 at 2:43 AM
originally posted by: PJackson

When you say "fails", I assume you mean it's value is null at runtime?

If so, is the module the service is in loaded by CAB (profilecatalog) or is the service being explicitly added in code?

CAB will only find things like that if it knows to process the assembly as a module.

Sep 22, 2006 at 12:53 AM
originally posted by: pmelichar1809

that's it, thank you