WCF Error - Could not find default endpoint element that references contract 'UserService.UserService'

前端 未结 13 1764
野趣味
野趣味 2020-11-29 02:27

Any ideas how to fix this?

UserService.UserServiceClient userServiceClient = new UserServiceClient();
            userServiceClient.GetUsersCompleted += new          


        
相关标签:
13条回答
  • 2020-11-29 03:20

    In case if you are using WPF application using PRISM framework then configuration should exist in your start up project (i.e. in the project where your bootstrapper resides.)

    In short just remove it from the class library and put into a start up project.

    0 讨论(0)
提交回复
热议问题