I created a WCF service for logging exceptions (I realize if the network is down, things won't be logged...there are fallbacks in place)
Anyhow, it has two methods
int LogException(MethodBase methodBase, Exception exception)
int LogMessage(MethodBase methodBase, string message, string data)
When I try and add the service to a new project, the .cs file is not created. I ran svcutil, and copied the .cs and config settings into the project, and tried calling the service with the generated client. I got the following two error
There was an error while trying to serialize parameter http://tempuri.org/:methodBase. The InnerException message was 'Type 'System.Reflection.RuntimeMethodInfo' with data contract name 'RuntimeMethodInfo:http://schemas.datacontract.org/2004/07/System.Reflection' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.'. Please see InnerException for more details.
With inner exception
Type 'System.Reflection.RuntimeMethodInfo' with data contract name 'RuntimeMethodInfo:http://schemas.datacontract.org/2004/07/System.Reflection' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.
What do I need to do to make this work?