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

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

Any ideas how to fix this?

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


        
13条回答
  •  [愿得一人]
    2020-11-29 03:06

    Do you have an Interface that your "UserService" class implements.

    Your endpoints should specify an interface for the contract attribute:

    contract="UserService.IUserService"
    

提交回复
热议问题