{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet/issues/411","repository_url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet","labels_url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet/issues/411/comments","events_url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet/issues/411/events","html_url":"https://github.com/Azure/azure-service-bus-dotnet/issues/411","id":292073633,"number":411,"title":"Exception \"ServiceBusException: ProtocolName48545450\" when sending to a topic using MSI","user":{"login":"erick-thompson","id":603724,"avatar_url":"https://avatars2.githubusercontent.com/u/603724?v=4","gravatar_id":"","url":"https://api.github.com/users/erick-thompson","html_url":"https://github.com/erick-thompson","followers_url":"https://api.github.com/users/erick-thompson/followers","following_url":"https://api.github.com/users/erick-thompson/following{/other_user}","gists_url":"https://api.github.com/users/erick-thompson/gists{/gist_id}","starred_url":"https://api.github.com/users/erick-thompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erick-thompson/subscriptions","organizations_url":"https://api.github.com/users/erick-thompson/orgs","repos_url":"https://api.github.com/users/erick-thompson/repos","events_url":"https://api.github.com/users/erick-thompson/events{/privacy}","received_events_url":"https://api.github.com/users/erick-thompson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-27T00:48:39Z","updated_at":"2018-02-01T17:26:52Z","closed_at":null,"author_association":"NONE","body":"I'm attempting to get MSI to work with Service Bus for sending messages to a topic from local/VS. When I have the following code:\r\n\r\nvar tokenProvider = new ManagedServiceIdentityTokenProvider();\r\nvar topicClient = new TopicClient(\"\", topic, tokenProvider);\r\nawait topicClient.SendAsync(messages);\r\n\r\nI get the exception \"Microsoft.Azure.ServiceBus.ServiceBusException: ProtocolName48545450\". The same code with a connection string works fine:\r\n\r\nvar topicClient = new TopicClient(\"...\", topic);\r\nawait topicClient.SendAsync(messages);\r\n\r\nI am using MSI to access ARM, so I know that VS is set up with my identity. Is there some other setup needed when using ManagedServiceIdentityTokenProvider (as opposed to AzureServiceTokenProvider)? I pulled the source, and couldn't figure out where that particular message is coming from.\r\n\r\nThanks,\r\nErick\r\n\r\n## Versions  \r\n- OS platform and version: Win 10\r\n- .NET Version: Core 2\r\n- NuGet package version or commit ID: 3.0.0-preview-01"},"comment":{"url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet/issues/comments/362340318","html_url":"https://github.com/Azure/azure-service-bus-dotnet/issues/411#issuecomment-362340318","issue_url":"https://api.github.com/repos/Azure/azure-service-bus-dotnet/issues/411","id":362340318,"user":{"login":"serkantkaraca","id":16924470,"avatar_url":"https://avatars1.githubusercontent.com/u/16924470?v=4","gravatar_id":"","url":"https://api.github.com/users/serkantkaraca","html_url":"https://github.com/serkantkaraca","followers_url":"https://api.github.com/users/serkantkaraca/followers","following_url":"https://api.github.com/users/serkantkaraca/following{/other_user}","gists_url":"https://api.github.com/users/serkantkaraca/gists{/gist_id}","starred_url":"https://api.github.com/users/serkantkaraca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkantkaraca/subscriptions","organizations_url":"https://api.github.com/users/serkantkaraca/orgs","repos_url":"https://api.github.com/users/serkantkaraca/repos","events_url":"https://api.github.com/users/serkantkaraca/events{/privacy}","received_events_url":"https://api.github.com/users/serkantkaraca/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T17:26:52Z","updated_at":"2018-02-01T17:26:52Z","author_association":"MEMBER","body":"Can you provide full exception and the stack? I will try to repro the issue."}}
{"actor":{"display_login":"serkantkaraca"}}