【发布时间】:2013-07-30 07:49:36
【问题描述】:
我已经创建了 smartliclient 和 web 服务。 我已经创建了带有 web 服务 + 相关类的服务器和带有桌面应用程序的客户端。 在 smartclient 项目中,命名空间和类名与 servver-webservices 中的相同。 客户项目中的问题 -
using SmartInstitute.Automation.SmartInstituteServices.CourseService; // webservice
CourseService service = new CourseService();
SmartInstitute.Course[] allCourses = service.GetAllCourses();
SmartInstitute.Course - 存在于 smartClient 项目中。 它的显示如下。错误 -
不能隐式转换类型 'SmartInstitute.Automation.SmartInstituteServices.CourseService.Course[]' 到“SmartInstitute.Course[]”
如果您想了解更多信息,请告诉我。 我指的是http://www.codeproject.com/Articles/11163/Developing-Next-Generation-Smart-Clients-using-NET
提前致谢。
【问题讨论】:
标签: c# web-services asp.net-4.5 smartclient