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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: