Cannot implicitly convert type System.Xml.XmlNode to object[]

I’m getting this error when trying to call a web service from ASP.NET web application. The web service receives and returns an XML document

Cannot implicitly convert type System.Xml.XmlNode “to object[]”

Couldn’t figure out the cause of this error. A work around is to create a Console application, add web reference, get Reference.cs and copy it to web applications’ App_code folder.

No need to add web reference to the web service in web application.

Advertisements