Update Reference not Working!

I have been freaked out by an uncommon misbehavior:

I have a solution consisting of one main Web Project, three C# Projects and a Web Services Project.

Web Services project is referenced by the main Web Project. Paths are all correct on the reference. I have the following error:

ArrayList projects = (ArrayList)ps.getProjects("gerardo.thomas");

Cannot Convert type 'object[]' to 'System.Collections.ArrayList'

The strange thing here is if you check the signature of the Web Method 'getProjects()', it is returning a System.Collections.ArrayList type. But if you go to the Reference.cs file: it describes it as returning an object[] type!!!

How come I mean, from where the hell does it takes that information It is pointing to the correct class. If I delete the Web Reference, recompile the Web Service and create the reference again, issue persists: it writes at the Reference.cs file the signature as returning an object[] type, when the Web Method signature is different!!

It is a headcache, I just cannot find out why is this happening. Where is it getting that signature from Is there any file maybe I am missing to delete May it be taking the Internet Cache info

PLEASE HELP! :S




Answer this question

Update Reference not Working!

  • Update Reference not Working!