Message contract cannot be null?

Mar 19, 2008 at 4:53 PM
Hi all

My service was working just fine this morning and for some reason this afternoon I can't use it any longer.
The error message I keep on getting is:

System.ServiceModel.FaultException`1System.ServiceModel.ExceptionDetail : Value cannot be null.
Parameter name: Internal Error: The instance of the MessageContract cannot be null in

I've probably changed something I should not have but even recreating the whole service from scratch did not solve the issue.

Any help appreciated

Mar 19, 2008 at 11:33 PM
For some reason perhaps you are returning a null instance of MessageContract when you should return a value according to your operation definition?
Mar 20, 2008 at 7:35 AM
My mistake Charly
I had forgotten I had renamed the service class name and the generated partial class name did not match the name of the class I implemented