How to do Auditing settings in web.config file

Posts   
 
    
Sagayaraj
User
Posts: 5
Joined: 01-Aug-2007
# Posted on: 01-Aug-2007 16:09:57   

Hi,

I have tried to implement LLBLGen Pro 2.5 Auditing feature in our web application. Based on help manual, I have placed in bin folder.

How to enable auding feature? How to do settings in web.config file?

I have refered LLBLGen Pro 2.5 help file and http://www.llblgen.com/TinyForum/PrintMessages.aspx?ThreadID=9537.

Kindly help us.

Thanks Sagayaraj

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 01-Aug-2007 19:03:55   

Did you enable dependency injection discovery? Please check "Using the generated code -> Setting up and using Dependency Injection" for details.

Frans Bouma | Lead developer LLBLGen Pro
Sagayaraj
User
Posts: 5
Joined: 01-Aug-2007
# Posted on: 02-Aug-2007 09:53:51   

Hi

I have added the below settings in web.config file.

<configSections>

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

</configSections>

<appSettings> <add key="autoDependencyInjectionDiscovery" value="true"/> </appSettings>

<dependencyInjectionInformation> <additionalAssemblies> <assembly filename="AuditLog.dll"/> <assembly fullName="SD.Examples.Injectables, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/> </additionalAssemblies> </dependencyInjectionInformation>

I am getting exception on the below line in web.config file. <assembly fullName="SD.Examples.Injectables, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>

Kindly help me how to proceed?

Regards Sagayaraj

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 02-Aug-2007 11:45:54   

Which exception exactly? With which stacktrace?

(I've deleted your other thread, as that's a duplicate of this one)

Frans Bouma | Lead developer LLBLGen Pro
Sagayaraj
User
Posts: 5
Joined: 01-Aug-2007
# Posted on: 02-Aug-2007 12:25:27   

Hi

I am getting below exception.

TypeinitializationExecption unhandled by user code

The type initializer for 'SD.LLBLGen.Pro.ORMSupportClasses.DependencyInjectionInfoProviderSingleton' threw an exception.

Regards Sagayaraj

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 02-Aug-2007 12:50:21   

Sagayaraj wrote:

Hi

I am getting below exception.

TypeinitializationExecption unhandled by user code

The type initializer for 'SD.LLBLGen.Pro.ORMSupportClasses.DependencyInjectionInfoProviderSingleton' threw an exception.

Regards Sagayaraj

What's the version of the SD.Examples.Injectables.dll you're using?

Frans Bouma | Lead developer LLBLGen Pro
Sagayaraj
User
Posts: 5
Joined: 01-Aug-2007
# Posted on: 02-Aug-2007 13:04:06   

Hi

I have download LLBLGen Pro 2.5 from website and installed in my system. SD.Examples.Injectables.dll does not exists in my system.

How can i get this dll?

Regards Sagayaraj

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 02-Aug-2007 14:16:11   

Sagayaraj wrote:

Hi

I have download LLBLGen Pro 2.5 from website and installed in my system. SD.Examples.Injectables.dll does not exists in my system.

How can i get this dll?

Regards Sagayaraj

That's an example of the USAGE of the xml section in the config file. You obviously have to write your own auditor classes as described in the auditing section (where an example auditor class is presented).

Frans Bouma | Lead developer LLBLGen Pro