Microsoft Application Blocks for .Net - Logging Block

  • Thread starter Thread starter Karuppasamy
  • Start date Start date
K

Karuppasamy

Hi

I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net .

I installed everything as per the Instructions given in the 'Development Using the Logging Block'.

But when i am trying to run the sample, i am getting the following error in the Event Viwer.


Kindly help me on this.

Waiting for your reply.

Thanks and regards

---------------Error Messge in Event Viewer------------------------

Unable to read and validate the configuration file C:\Program Files\Microsoft Application Blocks for .Net\Logging\Samples\VB\LogLevelSample\bin\EnterpriseInstrumentation.config. The following type(s) cannot be loaded:

Microsoft.ApplicationBlocks.Logging.EventSinks.WmiEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.EventSinks.BasicLogEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.EventSinks.MsmqEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.EventSinks.SqlServerEventSink, Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.MeteringEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AdministrativeEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AdminMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AuditEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AuditMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AuditOperationEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.BaseEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.CommonEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ComPlusInfo, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.DiagnosticEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ErrorEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ManagedSecurityInfo, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEnterEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceCallReturnEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseCommandEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalCallEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalReturnEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.WindowsSecurityInfo, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AdministrativeEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AdminMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AuditEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AuditMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.AuditOperationEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.BaseEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.CommonEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ComPlusInfo, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.DiagnosticEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ErrorEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.ManagedSecurityInfo, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEnterEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceCallReturnEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseCommandEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalCallEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalReturnEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.TraceMessageEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.WindowsSecurityInfo, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Microsoft.ApplicationBlocks.Logging.Schema.MeteringEvent, Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd42fb0c69be8a79

Please check the event & eventSink element's type attribute in the configuration file, and that these types are correctly installed on the system.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
 
Hope this is not to late (or even better, that you already solved the
problem)
It looks like there is a problem with the public key.
either the Logging Block Event Sinks dll is not in the gac, or you
haven't created the .snk file, or you have but haven't updated it in
all places (AssemblyInfo file and 2 config files - App.Config for
application file, and Instrumentation.config file).
To solve the problem follow the instructions in the Logging
Applicatoin Block PDF file, page 22.

Shmulik Primes
 
Back
Top