为什么,在加入VS2010服务引用时,则不会生成的客户端类? [英] Why, when adding a service reference in VS2010, is the client class not generated?

查看:104
本文介绍了为什么,在加入VS2010服务引用时,则不会生成的客户端类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要疯了,我beleive。

I'm going insane, I beleive.

这是我从来没有过一个问题,像在此之前,没有人(即谷歌已经索引),似乎是具有相同的问题。

That is, I've never had an issue like this before, and nobody (that Google has indexed) seems to be having the same issue.

每当我添加到VS2010项目一个特定ASMX服务的引用,所有的代码生成,有一个接口 ServiceSoap 代表所有的服务的功能,但该接口没有具体落实在解决方案中的任何地方!

Whenever I add a reference to a particular ASMX service to a VS2010 project, all of the code is generated, there is an interface ServiceSoap that represents all of the features of the service, but there is no concrete implementation of that interface anywhere in the solution!

我是什么做错了吗?我只是右键单击项目添加服务引用粘贴URL来.ASMX 在命名空间框中键入'胡说'单击确定

What am I doing wrong? I just right click project, add service reference, paste url to .asmx, type 'Blah' in the namespace box, click OK.

一切似乎发生确定。我只是蝙蝠粪疯了,我猜...



更新:结果
如果我去高级... 在添加服务引用对话框,然后选择添加作为.NET 2.0的服务,一切正常,但我不特别想这样做的。

我使用的实际名称空间是解决方法和.asmx文件是服务 Service.asmx

Everything seems to happen OK. I'm just bat-shit insane, I guess...


Update:
If I go to Advanced... in the add service reference dialog, and choose to add it as a .NET 2.0 service, everything works, but I don't particularly want to do it that way.
The actual namespace I'm using is Remedy and the service .asmx file is Service.asmx.

推荐答案

请尝试以下步骤:


  1. 查找在输出窗口,看是否有任何错误,当您使用添加服务引用。<生成/ LI>
  2. 查找在Reference.cs,看看是否有任何错误(为注释)。

  3. 最后,请尝试使用svcutil.exe的生成代理,因为它会更容易看到错误消息。

这篇关于为什么,在加入VS2010服务引用时,则不会生成的客户端类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆