Removed WebMethod from ASP.NET Webservice, method still shows up
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.: htt开发者_如何学JAVAp://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.
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.
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.
I think 7 years later you've probably fixed it already, but I was having the same problem in VS2015. The solution was to delete *.dll and *.pdb in the output folder and then build the project (not the whole solution)
精彩评论