Configure Service Reference… - Object reference is not set to an instance of an object

怎甘沉沦 提交于 2019-12-06 13:20:42

Solved myself by deleting Service Reference, and then adding new Service Reference with given URL.

I know this is a bit late but I had a similar problem and I fixed it by adding an identity element to the app.config file for the service's endpoint. Example:

<identity>
  <userPrincipalName value="username@domain" />
</identity>

The for me it worked even with an empty value for userPrincipalName:

<identity>
  <userPrincipalName value="" />
</identity>

Full endpoint element:

<endpoint address="net.tcp://localhost:9876/my-service/tcp" ... >
  <identity>
    <userPrincipalName value="" />
  </identity>
</endpoint>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!