Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / November 2003

Tip: Looking for answers? Try searching our database.

Logging Application Block 1.0 question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jean-Francois Hamelin - 06 Nov 2003 18:58 GMT
Hi,

I did install / build and configure as stated in the documentation (Generate
a .snk file, modify AssemblyInfo.cs, build, call regschema, call regsinks,
replace PublicKeyToken in .config files ), but when a run one of the samples
I always received the following error from the EIF regardless on the sample
I run:

Event Type: Error
Event Source: Enterprise Instrumentation
Event Category: None
Event ID: 0
Date:  11/6/2003
Time:  1:47:43 PM
User:  N/A
Computer:
Description:
Unable to read and validate the configuration file D:\Program
Files\Microsoft Application Blocks for
.Net\Logging\Samples\CS\WmiSinkSample\bin\Debug\EnterpriseInstrumentation.co
nfig. The following type(s) cannot be loaded:
Microsoft.ApplicationBlocks.Logging.EventSinks.WmiEventSink,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.EventSinks.BasicLogEventSink,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.EventSinks.MsmqEventSink,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.MeteringEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AdministrativeEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AdminMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AuditEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AuditMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AuditOperationEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.BaseEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.CommonEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ComPlusInfo,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.DiagnosticEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ErrorEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ErrorMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ManagedSecurityInfo,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEnterEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceCallReturnEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseCommandEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalCallEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalReturnEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.WindowsSecurityInfo,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AdministrativeEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AdminMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AuditEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AuditMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.AuditOperationEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.BaseEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.CommonEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ComPlusInfo,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.DiagnosticEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ErrorEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ErrorMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ExternalErrorMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.InternalErrorMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.ManagedSecurityInfo,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEnterEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceCallEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceCallReturnEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseCommandEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceDatabaseEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalCallEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceExternalReturnEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.TraceMessageEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.WindowsSecurityInfo,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Microsoft.ApplicationBlocks.Logging.Schema.MeteringEvent,
Microsoft.ApplicationBlocks.Logging.Schema, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=679e57ca10752fbc
Please check the event & eventSink element's type attribute in the
configuration file, and that these types are correctly installed on the
system.
Steve Miller - 06 Nov 2003 19:22 GMT
Did you run installutil to generate the EIF configuration file?

> Hi,
>
[quoted text clipped - 15 lines]
> Unable to read and validate the configuration file D:\Program
> Files\Microsoft Application Blocks for

.Net\Logging\Samples\CS\WmiSinkSample\bin\Debug\EnterpriseInstrumentation.co
> nfig. The following type(s) cannot be loaded:
>  Microsoft.ApplicationBlocks.Logging.EventSinks.WmiEventSink,
[quoted text clipped - 183 lines]
> configuration file, and that these types are correctly installed on the
> system.
Jean-Francois Hamelin - 06 Nov 2003 19:37 GMT
No, I did use the one coming with the sample and they are called
"EnterpriseInstrumentation.config".

> Did you run installutil to generate the EIF configuration file?
>
[quoted text clipped - 20 lines]
> > Unable to read and validate the configuration file D:\Program
> > Files\Microsoft Application Blocks for

.Net\Logging\Samples\CS\WmiSinkSample\bin\Debug\EnterpriseInstrumentation.co
> > nfig. The following type(s) cannot be loaded:
> >  Microsoft.ApplicationBlocks.Logging.EventSinks.WmiEventSink,
[quoted text clipped - 183 lines]
> > configuration file, and that these types are correctly installed on the
> > system.
Tian Min Huang - 07 Nov 2003 17:21 GMT
Hi,

Thanks for your post. I recommend you follow the steps described in the
MSDN article below and see if it works:

Logging Block Operations and Use
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
logging-ch04.asp

Please let me know the result. Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Scott Densmore - 07 Nov 2003 18:25 GMT
Hi Jean-Francois,
   If you are still having problems please send your info to
devfdbck@microsoft.com and we will be happy to help. Did running installutil
help you?

thanks,
scott

Please read for info on Logging Application
> Hi,
>
[quoted text clipped - 15 lines]
> Unable to read and validate the configuration file D:\Program
> Files\Microsoft Application Blocks for

.Net\Logging\Samples\CS\WmiSinkSample\bin\Debug\EnterpriseInstrumentation.co
> nfig. The following type(s) cannot be loaded:
>  Microsoft.ApplicationBlocks.Logging.EventSinks.WmiEventSink,
[quoted text clipped - 183 lines]
> configuration file, and that these types are correctly installed on the
> system.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.