views:

37

answers:

2

I changed the signature of one of my web methods in a web service and couldn't get it to update, so now I've removed the whole method and rebuilt the project and that removed method still shows up and works!

Is there a WebService cache in Visual Studio I don't know about?

I've cleaned, rebuilt, built the project, even searching the project for that removed method retrieves no results so I presume this is a Visual Studio issue, not my code.

Screenshot of all the methods in visual studio next to the methods available when I run the service. AddNewPerson is not in visual studio but IS in the service when I run it.: http://imgur.com/seRXh.gif

EDIT: This isn't a web reference issue, this is the actual service, I haven't even got round to updating the reference on the other projects yet, I need to change this method first.

+2  A: 

you should try to kill/stop the IIS process launched.
If you don't find the IIS icon in your bar, you can find it as a process named w3p.exe in your task manager and kill it.

PierrOz
I hadn't thought of that. Killed all the processes and ended the service, re-ran it and it still shows up :(
Gareth
+4  A: 

Maybe your method shows up in your Web Reference which is a proxy class automatically generated by Visual Studio. In this case, right-click the Web Reference in Solution Explorer and choose Update Web Reference.

Kerido
No, I'm working on the actual service - it's not referenced in another project yet.
Gareth
Could this be the WSDL info?
Martin Milan
@Gareth: then how do you track the old method's presence?
Kerido
How do you mean track it?I've made a web service, added some methods (see screenshot at the top) now removed one of them and when I run the web service it still shows up in the ASMX page you browse to when running it locally.
Gareth
@Gareth: could you provide the source code (at least, stubs) to reproduce the problem?
Kerido