I have a webservice, one method, "GetSites()", returns an object of type "SiteCollection" which is a collection of "SiteDefinition" objects (derived from CollectionBase). The webservice compiles ok, but when I try to compile the app that consumes this webservice, I get the error:
Cannot implicitly convert type 'SiteDefinition[]' to 'SiteCollection'
Why is it being reported as a SiteDefinition array? I have tried right cliking on the web reference and clicking "update service" and also removing and re-adding the service, neither of which fix the problem.
Cannot implicitly convert type 'SiteDefinition[]' to 'SiteCollection'
Why is it being reported as a SiteDefinition array? I have tried right cliking on the web reference and clicking "update service" and also removing and re-adding the service, neither of which fix the problem.