'System.FormatException' occurred in mscorlib.dll Additional information: Input string was not in a

G

Guest

Team
I am receiving this exception

A first chance exception of type 'System.FormatException' occurred in mscorlib.dl

Additional information: Input string was not in a correct format

on this line of code

VOSEWebServicesIncomingEventSource.Raise(messageEvent)

where messageEvent is of type : Microsoft.ApplicationBlocks.Logging.Schema.AuditMessageEvent (from MS Logging Block
and was built with this code in preceding method (auditMessageEvent = messageEvent):

public static void PublishAuditEvent(string message, LogLevel logLevel, EventLogEntryType eventLogEntryType, CustomEventSource customEventSource
AuditMessageEvent auditMessageEvent = new AuditMessageEvent();
auditMessageEvent.Message = message
auditMessageEvent.EventPublishLogLevel = (int)logLevel
auditMessageEvent.EventLogEntryTypeID = (int)eventLogEntryType

and VOSEWebServicesIncomingEventSource is defined as

private static EventSource VOSEWebServicesIncomingEventSource = new EventSource("VOSE Web Services Incoming")

EventSource being of type Microsoft.EnterpriseInstrumentation.EventSourc

I have nothing else besides the exception to go from - I have no clue which string is really bad.

Please advise

Thanks
Tim Reynold
Verizon FL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top