DI Manual Configuration Problem

Posts   
 
    
Posts: 1268
Joined: 10-Mar-2006
# Posted on: 26-Apr-2008 05:43:03   

Web application project:

If I use autoDependencyInjectionDiscovery, the DI happens and all works just fine.

However, if I use this (where this is the assemblyname of my DL, which contains the auditor), it does not activate:

<dependencyInjectionInformationLLBLGen> <additionalAssemblies> <assembly fullName="Company.DAL"/> </additionalAssemblies> </dependencyInjectionInformationLLBLGen>

Any ideas why? I am guessing it cannot find the assembly - or something. I do not get any errors or warnings or anything. Are there any debug switches for the DI stuff?

(of course hard to test if it works, which I have inquired about here: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=13201 )

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 26-Apr-2008 06:24:43   

Could you please post all the relevant config file settings? Also what are your LLBLGenPro runtime libraries?

In the meantime, please try this:

<assembly fullName="TheAuditorName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 27-Apr-2008 11:02:31   

PLease see: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=12390

It's also in the manual in a remark. The cause isn't solveable unfortunately, so you've to specify the full name of the assembly.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 1268
Joined: 10-Mar-2006
# Posted on: 28-Apr-2008 01:35:42   

Well, I tried that and it still does not work. I have this:

<section name="dependencyInjectionInformationLLBLGen" type="SD.LLBLGen.Pro.ORMSupportClasses.DependencyInjectionSectionHandler, SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.5.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27"/>

and

<dependencyInjectionInformationLLBLGen>
    <additionalAssemblies>
      <assembly fullName="CompanyName.DAL, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null"/>
    </additionalAssemblies>
  </dependencyInjectionInformationLLBLGen>

The specified assembly is both the LLBLGen generated code and my auditing class. If I use autoDependencyInjectionDiscovery=true, it works fine. The assembly version of my DAL is 2.5.0.0.

This is a web application, it does not produce an error, just does not do auditing. Any ideas?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Apr-2008 07:00:39   

Change this:

<section name="dependencyInjectionInformationLLBLGen
...

into this:

<section name="dependencyInjectionInformation
...

and this:

<dependencyInjectionInformationLLBLGen>
...
</dependencyInjectionInformationLLBLGen>

into this:

<dependencyInjectionInformation>
...
</dependencyInjectionInformation>

Note that the DI section's config name is dependencyInjectionInformation

David Elizondo | LLBLGen Support Team
Posts: 1268
Joined: 10-Mar-2006
# Posted on: 28-Apr-2008 20:56:09   

That worked. Thanks. I was thinking we could name the sections anything we wanted to, as long as it was matched in the top......I guess not.