Microsoft Service Bus 1.0 unable to communicate with a server outside the client's domain

大城市里の小女人 提交于 2019-12-04 14:07:49

Alternatively, even if your client is not joined to the domain, you can use the OAuthTokenProvider.

Once you have created your namespace manager and factory and before doing any operation:

namespaceManager.Settings.TokenProvider = TokenProvider.CreateOAuthTokenProvider(new Uri[] { new Uri("https://servicebus01.dns1.XXXXXX.com:9355") }, new NetworkCredential("user", "password", "domain"))

messagingFactory.GetSettings().TokenProvider = TokenProvider.CreateOAuthTokenProvider(new Uri[] { new Uri("https://servicebus01.dns1.XXXXXX.com:9355")}, new NetworkCredential("user", "password", "domain"));

I found the problem!

The computer running the client app was not joined on a domain at all. It must be join to a domain, even if there is not trust between the clients and servers domains.

Strange limitation...

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!