简体   繁体   English

WCF与Visual Studio 2005的兼容性

[英]WCF compatibility with visual studio 2005

I create a service layer with WCF in server. 我在服务器中使用WCF创建服务层。 when i call service methods in VS 2012 every think work well but when i am going to use these services in info path with using visual studio tools for application (vsta), when i call these service in vsta that has .net2 in vs 2005, my problems are as following: when all data members with int data type transfer to server,they convert to zero and all data members with bool data type transfer to server, they convert to false. 当我在VS 2012中调用服务方法时,每个人都认为效果很好,但是当我打算在Visual Studio中为应用程序(vsta)使用Visual Studio工具在信息路径中使用这些服务时,当我在vs.2005中具有.net2的vsta中调用这些服务时,我的问题如下:当所有具有int数据类型的数据成员都传输到服务器时,它们将转换为零,而所有具有bool数据类型的数据成员都将传输到服务器时,它们将转换为false。 i don't know the reason but i guess maybe wcf is not compatible with VS 2005 please help me. 我不知道原因,但我想也许wcf与VS 2005不兼容,请帮助我。

WCF was introduced in .NET 3.0 so basically you can't use it with net20. WCF是.NET 3.0中引入的,因此基本上您不能在net20中使用它。 You have 2 options: 您有2个选择:

1) You can install 4.0 framework separatly from VS2005 and use its command line tools to generate proxy classes for your service and upgrade your project to a new framework too. 1)您可以从VS2005分别安装4.0框架,并使用其命令行工具为您的服务生成代理类,并将您的项目也升级到新框架。

2) You can take sources of mono implementation of wcf and try to compile it with .net20 and include it in your project. 2)您可以获取wcf的单声道实现源,并尝试使用.net20进行编译并将其包含在您的项目中。 But the support of WCF in Mono is not complete. 但是WCF在Mono中的支持还不完整。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM