PrimativeMessagePart Name Property is incorrect

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Aug 19, 2009 at 10:09 PM
Edited Aug 19, 2009 at 11:29 PM

When adding a Service Contract we get the following error after deleting (we believe) a Data Contract message part in a response message.  Even if we delete the entire message we continue to get the following error:

 

The PrimativeMessagePart Name property is incorrect, it is empty or contains invalid characters.

Has anyone else come across this?  How do we resolve this and get the Service Contract to validate?

Update:  OK, this is rather embarrassing.  A colleague had asked me for help with this bug and told me the above was what he had done to generate this error.  It turns out that the following was the cause:  He had added a primitive message part and simply not entered a name!  As soon as I saw it I deleted it and everything validated.

Developer
Aug 20, 2009 at 12:06 AM

After deleting that DC message part, try checking in all your MessageContract parts that you don't have a part with an empty name or similar.