EIF and Web Serivces
From: Graham Allwood (graham.allwood_at_nospamtoEborsolutions.com)
Date: 05/07/04
- Next message: Dave: "Visual Studio Installer for VS.Net 2003 problem"
- Previous message: Howard Pinsley: "RE: Problems Installing EIF"
- Next in thread: Alf Tore Haaland: "Re: EIF and Web Serivces"
- Reply: Alf Tore Haaland: "Re: EIF and Web Serivces"
- Reply: Graham Allwood: "Re: EIF and Web Serivces"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 01:06:23 +0100
I think this must be a faq, but can I find the answer - no.
I successfully used the logging app block in my windows app (sample test),
but I'm now putting it in to my web services. When I try am raise an event
from the web services I'm getting an Error in the event log from EIF, saying
that the LogEventSink cannot be used because a Security Exception was thown,
as below:
Event Type: Error
Event Source: Enterprise Instrumentation
Event Category: None
Event ID: 0
Date: 07/05/2004
Time: 00:55:11
User: N/A
Computer: GRAVYXP
Description:
Error loading an Event Sink of type
'Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink,
Microsoft.ApplicationBlocks.Logging.EventSinks, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=490cbe481ee0124d'. The Event Source of name
'Application' will not write events out to this Event Sink. The following
exception was returned during the load:
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.Security.SecurityException:
Requested registry access is not allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLog.FindSourceRegistration(String source,
String machineName, Boolean readOnly)
at System.Diagnostics.EventLog.SourceExists(String source, String
machineName)
at System.Diagnostics.EventLog.SourceExists(String source)
at
Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink.CreateEventSourc
e()
at
Microsoft.ApplicationBlocks.Logging.EventSinks.LogEventSink..ctor(IDictionar
y parameters, EventSource eventSource)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean
ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args,
CultureInfo culture, Object[] activationAttributes)
at
Microsoft.EnterpriseInstrumentation.EventSinks.EventSink.CreateNewEventSinks
(DataRow[] eventSinkRows, EventSource eventSource)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Thanks for any help.
Graham
- Next message: Dave: "Visual Studio Installer for VS.Net 2003 problem"
- Previous message: Howard Pinsley: "RE: Problems Installing EIF"
- Next in thread: Alf Tore Haaland: "Re: EIF and Web Serivces"
- Reply: Alf Tore Haaland: "Re: EIF and Web Serivces"
- Reply: Graham Allwood: "Re: EIF and Web Serivces"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|