我创建了 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
提前致谢。