{"action":"opened","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/3748","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3748/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3748/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3748/events","html_url":"https://github.com/Particular/NServiceBus/issues/3748","id":155556317,"number":3748,"title":"Non descriptive error message when setting up SendOnly endpoint without persistence.","user":{"login":"dvdstelt","id":1257410,"avatar_url":"https://avatars.githubusercontent.com/u/1257410?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdstelt","html_url":"https://github.com/dvdstelt","followers_url":"https://api.github.com/users/dvdstelt/followers","following_url":"https://api.github.com/users/dvdstelt/following{/other_user}","gists_url":"https://api.github.com/users/dvdstelt/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdstelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdstelt/subscriptions","organizations_url":"https://api.github.com/users/dvdstelt/orgs","repos_url":"https://api.github.com/users/dvdstelt/repos","events_url":"https://api.github.com/users/dvdstelt/events{/privacy}","received_events_url":"https://api.github.com/users/dvdstelt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Consider%20for:%20Project%20V6%20launch","name":"Consider for: Project V6 launch","color":"fef2c0"},{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Type:%20Bug","name":"Type: Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T17:17:21Z","updated_at":"2016-05-18T17:17:21Z","closed_at":null,"body":"The following error occurs when I set up a SendOnly endpoint without persistence.\r\n\r\n```\r\nAn unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll\r\n\r\nAdditional information: The given key (ResultingSupportedStorages) was not present in the dictionary.\r\n```\r\n\r\nCommenting out the persistence line fixes it.\r\n\r\n```\r\nvar config = new EndpointConfiguration(\"Website.Application\");\r\nconfig.SendOnly();\r\n\r\nconfig.UseTransport<MsmqTransport>().ConnectionString(\"deadLetter=false;journal=false\");\r\nconfig.UseSerialization<JsonSerializer>();\r\n//config.UsePersistence<InMemoryPersistence>();\r\n\r\nconfig.SendFailedMessagesTo(\"error\");\r\n\r\nConventionsBuilder conventions = config.Conventions();\r\nconventions.DefiningCommandsAs(t => t.Namespace != null && t.Namespace == \"Divergent.Messages\" || t.Name.EndsWith(\"Command\"));\r\nconventions.DefiningEventsAs(t => t.Namespace != null && t.Namespace == \"Divergent.Messages\" || t.Name.EndsWith(\"Event\"));\r\n\r\nvar endpoint = Endpoint.Start(config).GetAwaiter().GetResult();\r\n```\r\n\r\nFrom a user perspective I would say it should not look for storage, but the error message could also be more descriptive."}}