I always recieve the above error when I generate a proxy class for my service using SvcUtil
. The service is exposing a property that is of System.Xml.Linq.XElement
type. The SvcUtil
generates a System.Xml.XmlElement
type property unfortunately. On the other hand if I'm using Add Reference in VS to generate the proxy class, everything's ok. I tried the latest 4.0 version of SvcUtil
from the NETFX 4.0 Tools folder, but still with no luck.
In case anyone is still looking, like I was, the answer is here: http://social.msdn.microsoft.com/Forums/en/wcf/thread/42dbe820-3f59-4662-9664-83999e1746c0
Yaron Naveh suggests adding a /reference argument to SvcUtil.exe.
svcutil /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" http://localhost...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With