问题描述
你好
我可以从Visual Studio 2010和2012连接到我的wcf服务
I can connect to my wcf service from visual studio 2010 and 2012
2015年这行不通,即使是样本行也不行
In 2015 this doesn't work, even the samples ones don't work
昏暗的作为新的ServiceReference1.Service1Client()
Dim strReturn As String =""
strReturn = s.GetDataAsync(10).Result
s.CloseAsync()
Dim s As New ServiceReference1.Service1Client()
Dim strReturn As String = ""
strReturn = s.GetDataAsync(10).Result
s.CloseAsync()
失败
如果我在Studio 2013中尝试相同的操作
If I try the same in studio 2013
昏暗的作为新的ServiceReference1.Service1Client()
Dim strReturn As String =""
strReturn = s.GetData(10)
s.CloseAsync()
Dim s As New ServiceReference1.Service1Client()
Dim strReturn As String = ""
strReturn = s.GetData(10)
s.CloseAsync()
我无法在Studio 2015中选择getdat,只能选择getdataasync.
I cannot choose getdat in studio 2015 only getdataasync.
我怎么了?
推荐答案
此论坛讨论的是Visual Studio WPF/SL设计器,Visual Studio指导自动化工具包,开发人员文档和帮助系统以及Visual Studio编辑器.
This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
您的问题可能与VB开发有关,我将该线程移至相应的论坛寻求专业解答.
Your issue may be related to VB development I will move this thread to corresponding forum for a professional answer.
此致
奥斯卡
这篇关于从Windows 10应用连接到WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!