I'm receiving an error when adding a web reference to a BizTalk 2006 project. It works perfectly well in a standard C# project.
"Could not generate BizTalk files. blah blah: error CS0120: An object reference is required for the nonstatic field, method, or property 'blah.blah.System'"
The offending line in the WSDL is:
<element name="System" minOccurs="0" type="xsd:string"/>
I believe the problem to be due to the element name being "System", as if I change this to anything else (including lower case 'system'), it works fine. Alas I'm not able to change the WSDL of the actual web service I'm calling.
Does anybody know of a method of getting around this issue?
Thanks in advance,
Alastair.