Using WCFs and custom enterprise library.

Topics: Logging Application Block
Jun 4, 2008 at 5:55 AM
Hi,

We have developed our own custom enterprise library using EL3.1. But when trying to logging to the database we are not getting any errors for logger.write(logentry). After checking the event logs we have the following

Event Type: Error
Event Source: Enterprise Library Logging
Event Category: None
Event ID: 6352
Date:  6/3/2008
Time:  11:31:49 PM
User:  N/A
Computer: ILCH-94221
Description:
Timestamp: 6/4/2008 4:31:49 AM
Message: Tracing to LogSource 'Errors' failed. Processing for other sources will continue. See summary information below for more information. Should this problem persist, stop the service and check the configuration file(s) for possible error(s) in the configuration of the categories and sinks.

Summary for Enterprise Library Distributor Service:
======================================
-->
Message:
Timestamp: 6/4/2008 4:31:48 AM
Message: Error
Category: Errors
Priority: 1
EventId: 0
Severity: Error
Title:System.DivideByZeroException
Machine: .
App Domain: Logging.Client.vshost.exe
ProcessId: 1100
Process Name: Logging.Client.vshost
Thread Name:
Win32 ThreadId:10
Extended Properties: ExceptionType - System.DivideByZeroException
TLA - QSS
ExceptionMessage - Attempted to divide by zero.
Source - Logging.Client
StackTraceMessage -    at Logging.Client.frmLoggingMainForm.GenerateException() in C:\Test\Upgrade2008 MS\Logging.Client\LoggingClientQuickStartMainForm.cs:line 163
   at Logging.Client.frmLoggingMainForm.btnLogError_Click(Object sender, EventArgs e) in C:\Test\Upgrade2008 MS\Logging.Client\LoggingClientQuickStartMainForm.cs:line 102
TargetSite - Void GenerateException()
HelpLink -
ModuleName - Quick Start Sample
UserID -
SequenceID - QSS__03062008233148

--> MachineName: ILCH-94221
--> TimeStamp: 6/4/2008 4:31:49 AM
--> FullName: Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
--> AppDomainName: Logging.Client.vshost.exe
--> WindowsIdentity: ENT\sm269

Exception Information Details:
======================================
Exception Type: System.ServiceModel.Security.MessageSecurityException
Message: No signature message parts were specified for messages with the 'http://www.ntrs.com/NEL/ILoggingService/LogErrorLoggingFaultContractFault' action.
Data: System.Collections.ListDictionaryInternal
TargetSite: Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
HelpLink: NULL
Source: mscorlib

StackTrace Information Details:
======================================

Server stack trace:
   at System.ServiceModel.Security.MessageSecurityProtocolFactory.ExtractMessageParts(String action, ScopedMessagePartSpecification scopedParts, Boolean isForSignature)
   at System.ServiceModel.Security.MessageSecurityProtocolFactory.GetIncomingSignatureParts(String action)
   at System.ServiceModel.Security.MessageSecurityProtocol.ConfigureReceiveSecurityHeader(Message message, String actor, SecurityProtocolCorrelationState[] correlationStates, SecurityStandardsManager standardsManager, IList`1& supportingAuthenticators)
   at System.ServiceModel.Security.InitiatorSessionSymmetricMessageSecurityProtocol.VerifyIncomingMessageCore(Message& message, String actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
   at System.ServiceModel.Security.MessageSecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
   at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.VerifyIncomingMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState)
   at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.ProcessIncomingMessage(Message message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState, MessageFault& protocolFault)
   at System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.ProcessReply(Message reply, TimeSpan timeout, SecurityProtocolCorrelationState correlationState)
   at System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at NorthernTrust.EnterpriseLibrary.Logging.Client.LoggingServiceProxies.ILoggingService.LogError(NorthernTrustLogEntry logEntry)
   at NorthernTrust.EnterpriseLibrary.Logging.Client.LoggingServiceProxies.LoggingServiceClient.LogError(NorthernTrustLogEntry logEntry)
   at NorthernTrust.EnterpriseLibrary.Logging.Client.TraceListeners.ServiceTraceListener.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data)
   at Microsoft.Practices.EnterpriseLibrary.Logging.LogSource.TraceData(TraceEventType eventType, Int32 id, LogEntry logEntry, TraceListenerFilter traceListenerFilter)
   at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter.ProcessLog(LogEntry log)
Category:
Priority: -1
EventId: 6352
Severity: Error
Title:
Machine: ILCH-94221
Application Domain: Logging.Client.vshost.exe
Process Id: 1100
Process Name: C:\Test\Upgrade2008 MS\Logging.Client\bin\Debug\Logging.Client.vshost.exe
Win32 Thread Id: 4212
Thread Name:
Extended Properties:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Here is my client application and web services config files