WCF 服务操作未更新 [英] WCF service operations not updated
问题描述
我正在创建一个新的 WCF 服务.我最初只有三个手术.但过了一段时间,我决定再添加两个.当我尝试从 WPF 客户端添加服务引用时,此操作不会出现在 Microsoft 测试客户端中,也不会出现在操作列表中.我也试图评论初始操作之一.它仍然出现在 Microsoft 测试客户端中并且可以调用.我也试过删除服务生成的dll并重新生成.没运气.有某种缓存",Visual Studio 可以在其中存储我可以删除的 WCF 服务库?
I´m creating a new WCF service. I initially had only three operations. But after some time I decided to add two more. This operations doesn't appear in the Microsoft test client, neither in the list of operations when I try to add a service reference from my WPF client. Also I tried to comment one of the initial operations. It still apears in the Microsoft test client and can be invoked. I Tried also delete the dlls generated by the service and regenerate again. No luck. There are some kind of "cache" where Visual Studio stores the WCF services libraries that I can delete?
更新:我正在使用在 ASP.NET 开发服务器中运行的服务.
UPDATE: I'm working with the service running in the ASP.NET devolopment server.
推荐答案
我不知道为什么,但是我创建了一个新项目并从有问题的项目中复制了操作的定义,问题就消失了.微软之谜还有一个案例.
I don't know why, but I created a new project and copied the definitions of the operations from the problematic project and the problem is gone. One case more for Microsoft mysteries.
这篇关于WCF 服务操作未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!