{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/3530","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3530/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3530/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3530/events","html_url":"https://github.com/Particular/NServiceBus/issues/3530","id":137475727,"number":3530,"title":"GenericHost.cs not found","user":{"login":"mojamcpds","id":3146262,"avatar_url":"https://avatars.githubusercontent.com/u/3146262?v=3","gravatar_id":"","url":"https://api.github.com/users/mojamcpds","html_url":"https://github.com/mojamcpds","followers_url":"https://api.github.com/users/mojamcpds/followers","following_url":"https://api.github.com/users/mojamcpds/following{/other_user}","gists_url":"https://api.github.com/users/mojamcpds/gists{/gist_id}","starred_url":"https://api.github.com/users/mojamcpds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojamcpds/subscriptions","organizations_url":"https://api.github.com/users/mojamcpds/orgs","repos_url":"https://api.github.com/users/mojamcpds/repos","events_url":"https://api.github.com/users/mojamcpds/events{/privacy}","received_events_url":"https://api.github.com/users/mojamcpds/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Type:%20Discussion","name":"Type: Discussion","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-01T05:34:18Z","updated_at":"2016-09-13T08:46:20Z","closed_at":"2016-09-13T08:46:20Z","body":"My Endpoint configuration is as follows:\r\n\r\n```\r\npublic class EndpointConfig : IConfigureThisEndpoint, AsA_Server, IWantToRunWhenBusStartsAndStops, IWantToRunWhenConfigurationIsComplete\r\n    {\r\n        public void Init()\r\n        {\r\n            LogManager.Use<Log4NetFactory>();\r\n        }\r\n\r\n        public void Start()\r\n        {\r\n            Wireup.Init()\r\n                .UsingInMemoryPersistence()\r\n                .EnlistInAmbientTransaction()\r\n                .NES()\r\n                .Build();\r\n        }\r\n\r\n        public void Stop()\r\n        {\r\n        }\r\n\r\n\r\n        private IUnityContainer container;\r\n\r\n        public void Customize(BusConfiguration configuration)\r\n        {\r\n            configuration.UseSerialization<Json>();\r\n            configuration.EnableInstallers();\r\n            configuration.UseTransport<MsmqTransport>();\r\n            configuration.PurgeOnStartup(false);\r\n            configuration.UsePersistence<InMemoryPersistence>();\r\n            configuration.DisableFeature<InMemoryGatewayPersistence>();\r\n            configuration.DisableFeature<InMemoryOutboxPersistence>();\r\n            configuration.DisableFeature<InMemorySagaPersistence>();\r\n            configuration.DisableFeature<InMemoryTimeoutPersistence>();\r\n            configuration.DisableFeature<Sagas>();\r\n            configuration.DisableFeature<SecondLevelRetries>();\r\n            configuration.DisableFeature<TimeoutManager>();\r\n            configuration.DisableFeature<TimeoutManagerBasedDeferral>();\r\n            configuration.AutoSubscribe().DoNotAutoSubscribeSagas();\r\n            configuration.AutoSubscribe().AutoSubscribePlainMessages();\r\n            this.container = DependencyRegistration.DependencyRegister();\r\n            configuration.UseContainer<UnityBuilder>(c => c.UseExistingContainer(container));\r\n\r\n        }\r\n\r\n        public void Run(Configure config)\r\n        {\r\n            config.NES();\r\n        }\r\n\r\n\r\n    }\r\n```\r\nAnd I configured Bus inside Global.asax as follows:\r\n\r\n```\r\npublic static ISendOnlyBus SendOnlyBus { get; private set; }\r\n        public static IBus Bus { get; private set; }\r\n        public static ISendOnlyBus ConfigureSendOnlyBus(IUnityContainer container)\r\n        {\r\n            var busConfiguration = new BusConfiguration();\r\n            busConfiguration.UseSerialization<JsonSerializer>();\r\n            busConfiguration.UseTransport<MsmqTransport>();\r\n            busConfiguration.UsePersistence<InMemoryPersistence>();\r\n            busConfiguration.Transactions().Disable();\r\n            busConfiguration.PurgeOnStartup(false);\r\n            busConfiguration.UsePersistence<InMemoryPersistence>();\r\n            busConfiguration.DisableFeature<InMemoryGatewayPersistence>();\r\n            busConfiguration.DisableFeature<InMemoryOutboxPersistence>();\r\n            busConfiguration.DisableFeature<InMemorySagaPersistence>();\r\n            busConfiguration.DisableFeature<InMemoryTimeoutPersistence>();\r\n            busConfiguration.DisableFeature<Sagas>();\r\n            busConfiguration.DisableFeature<SecondLevelRetries>();\r\n            busConfiguration.DisableFeature<TimeoutManager>();\r\n            busConfiguration.DisableFeature<TimeoutManagerBasedDeferral>();\r\n            busConfiguration.AutoSubscribe().DoNotAutoSubscribeSagas();\r\n            busConfiguration.AutoSubscribe().AutoSubscribePlainMessages();\r\n            busConfiguration.UseContainer<UnityBuilder>(c => c.UseExistingContainer(container));\r\n            LogManager.Use<NServiceBus.Log4Net.Log4NetFactory>();\r\n\r\n            SendOnlyBus = NServiceBus.Bus.CreateSendOnly(busConfiguration);\r\n            return SendOnlyBus;\r\n        }\r\n\r\n        public static IBus ConfigureBus(IUnityContainer container)\r\n        {\r\n            var busConfiguration = new BusConfiguration();\r\n            busConfiguration.UseSerialization<JsonSerializer>();\r\n            busConfiguration.UseTransport<MsmqTransport>();\r\n            busConfiguration.UsePersistence<InMemoryPersistence>();\r\n            busConfiguration.Transactions().Disable();\r\n            busConfiguration.PurgeOnStartup(false);\r\n            busConfiguration.UsePersistence<InMemoryPersistence>();\r\n            busConfiguration.DisableFeature<InMemoryGatewayPersistence>();\r\n            busConfiguration.DisableFeature<InMemoryOutboxPersistence>();\r\n            busConfiguration.DisableFeature<InMemorySagaPersistence>();\r\n            busConfiguration.DisableFeature<InMemoryTimeoutPersistence>();\r\n            busConfiguration.DisableFeature<Sagas>();\r\n            busConfiguration.DisableFeature<SecondLevelRetries>();\r\n            busConfiguration.DisableFeature<TimeoutManager>();\r\n            busConfiguration.DisableFeature<TimeoutManagerBasedDeferral>();\r\n            busConfiguration.AutoSubscribe().DoNotAutoSubscribeSagas();\r\n            busConfiguration.AutoSubscribe().AutoSubscribePlainMessages();\r\n            busConfiguration.UseContainer<UnityBuilder>(c => c.UseExistingContainer(container));\r\n            LogManager.Use<NServiceBus.Log4Net.Log4NetFactory>();\r\n\r\n            Bus = NServiceBus.Bus.Create(busConfiguration).Start();\r\n            return Bus;\r\n        }\r\n```\r\n\r\nInside web.config I setup `MessageEndpointMappings `as follows:\r\n\r\n```\r\n<TransportConfig MaxRetries=\"5\" MaximumConcurrencyLevel=\"1\" MaximumMessageThroughputPerSecond=\"0\" />\r\n  <UnicastBusConfig>\r\n    <MessageEndpointMappings>\r\n      <add Messages=\"Conference\" Endpoint=\"RegistrationEndPoint.Backend\" />\r\n      <add Messages=\"Conference.Contracts\" Endpoint=\"RegistrationEndPoint.Backend\" />\r\n      <add Messages=\"Registration\" Endpoint=\"RegistrationEndPoint.Backend\" />\r\n      <add Messages=\"Registration.Contracts\" Endpoint=\"RegistrationEndPoint.Backend\" />\r\n      <add Messages=\"Payment\" Endpoint=\"RegistrationEndPoint.Backend\" />\r\n      <add Messages=\"Payment.Contracts\" Endpoint=\"RegistrationEndPoint.Backend\" />\r\n    </MessageEndpointMappings>\r\n  </UnicastBusConfig>\r\n  <MessageForwardingInCaseOfFaultConfig ErrorQueue=\"Conference.Errors\" />\r\n```\r\n\r\nWhen I run the project after scanning EndPointMapping.Customize() method it returns me following message:\r\n![generic host](https://cloud.githubusercontent.com/assets/3146262/13418563/cea7ecc6-dfa0-11e5-85f9-bface3f4597e.png)\r\n\r\nAfter giving that exception my NServiceBusHost console window remain blank as follows:\r\n![nserviebushostconsole](https://cloud.githubusercontent.com/assets/3146262/13418588/13f0007a-dfa1-11e5-8bad-5ea0e5a947d2.png) and further doesn't execute any command related to NServiceBus.\r\n\r\n**Note: I am using  \r\n1. NServiceBus version 5.2.0\r\n2. NServiceBus.Host version 6.0.0\r\n3. NServiceBus.Log4Net version 1.0.0\r\n4. NServiceBus.Unity version 6.2.0\r\n5. Unity version 4.0.1**\r\n\r\nI already uninstalled nsb.host once and reinstalled again but result is unchanged.\r\n\r\nHow can I fix the problem?"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/246615919","html_url":"https://github.com/Particular/NServiceBus/issues/3530#issuecomment-246615919","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3530","id":246615919,"user":{"login":"andreasohlund","id":125028,"avatar_url":"https://avatars.githubusercontent.com/u/125028?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasohlund","html_url":"https://github.com/andreasohlund","followers_url":"https://api.github.com/users/andreasohlund/followers","following_url":"https://api.github.com/users/andreasohlund/following{/other_user}","gists_url":"https://api.github.com/users/andreasohlund/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasohlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasohlund/subscriptions","organizations_url":"https://api.github.com/users/andreasohlund/orgs","repos_url":"https://api.github.com/users/andreasohlund/repos","events_url":"https://api.github.com/users/andreasohlund/events{/privacy}","received_events_url":"https://api.github.com/users/andreasohlund/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T08:46:20Z","updated_at":"2016-09-13T08:46:20Z","body":"@mojamcpds please reopen if you still have this issue"}}
{"actor":{"display_login":"andreasohlund"}}