You need to sign in to do that
Don't have an account?

Web Reference Causes Namespace Error
I've imported a web reference into my C# project and when I try to build the app I get the following error:
The namespace 'Foo.Bar.SForceReference' already contains a definition for 'ExceptionCode'
Using the Object Browser, I can see there's are duplicates for exceptionCode, exceptionCodeField, exceptionMessage, exceptionMessageField, and PropertyChanged methods under the ApiFault class. There are also duplicate entries in the ExceptionCode enumeration class. Very strage...
Can anyone offer some insight into this?
The namespace 'Foo.Bar.SForceReference' already contains a definition for 'ExceptionCode'
Using the Object Browser, I can see there's are duplicates for exceptionCode, exceptionCodeField, exceptionMessage, exceptionMessageField, and PropertyChanged methods under the ApiFault class. There are also duplicate entries in the ExceptionCode enumeration class. Very strage...
Can anyone offer some insight into this?
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.1433")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
These attributes seem to describe a lot of classes. Has anyone seen this issue before? What am I doing wrong??
Regards,
Jon
Thanks for posting this area51. It does make more sense for the WSDL to be a web reference since sales force is web based and not native .NET.