无法正确重新添加服务引用

发布于 2024-07-10 16:01:52 字数 276 浏览 3 评论 0原文

我已经在服务器上启动并运行了 WCF 服务。 我们有一个代理类,我们将所有服务引用添加到其中,我尝试在那里添加我的服务引用。 然而,它并没有公开所有方法,特别是接口,允许我创建它的实例(这是 VS 2008)。 但是,当我创建一个新项目并仅向其添加服务引用时,它会正确添加所有接口。

关于如何强制原始项目正确重新添加项目有什么想法吗? 是不是内存中有什么东西没有被清除? 我尝试删除引用、重建、关闭并重新打开项目,但结果仍然相同。

我还尝试删除该项目并重新创建它,但也没有运气。

I've got a WCF service up and running on a server. We have a proxy class that we add all service references to, and I tried to add my service reference there. However, it's not exposing all of the methods, specifically the interface, allowing me to create an instance of it (this is VS 2008). However, when I create a new project, and just add the service reference to it, it adds all of the interfaces properly.

Any ideas on how to force the original project to re-add the project properly? Is there something in memory that is not getting cleared? I've tried deleting the reference, rebuilding, closing and re-opening the project, but it still comes out the same way.

I've also tried deleting the project and re-creating it with no luck there either.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

来世叙缘 2024-07-17 16:01:52

问题已经解决。 事实证明,如果您不将所有必要的引用添加到项目中,那么需要它们的引用将不会出现。 原来我们需要添加System.Drawing作为参考,然后解决办法添加就好了。 我希望 MS 对此有一些反馈,但如果将来有人遇到类似的事情,请记住,您需要添加所有参考文献......

The issue has been resolved. It turns out that if you don't add all the necessary references to the project, then the references needing them will not appear. It turned out that we needed to add System.Drawing as a reference, and then the solution added fine. I wish there was some feedback about this from MS, but if anyone runs into something like this in the future, just remember, you need to add all references...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文