{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/4413","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4413/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4413/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4413/events","html_url":"https://github.com/Particular/NServiceBus/issues/4413","id":197852602,"number":4413,"title":"Cannot access a disposed object.  Object name: 'CommonObjectBuilder'.","user":{"login":"ottarhenanger","id":981641,"avatar_url":"https://avatars.githubusercontent.com/u/981641?v=3","gravatar_id":"","url":"https://api.github.com/users/ottarhenanger","html_url":"https://github.com/ottarhenanger","followers_url":"https://api.github.com/users/ottarhenanger/followers","following_url":"https://api.github.com/users/ottarhenanger/following{/other_user}","gists_url":"https://api.github.com/users/ottarhenanger/gists{/gist_id}","starred_url":"https://api.github.com/users/ottarhenanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottarhenanger/subscriptions","organizations_url":"https://api.github.com/users/ottarhenanger/orgs","repos_url":"https://api.github.com/users/ottarhenanger/repos","events_url":"https://api.github.com/users/ottarhenanger/events{/privacy}","received_events_url":"https://api.github.com/users/ottarhenanger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-28T13:22:19Z","updated_at":"2016-12-28T15:07:50Z","closed_at":null,"body":"Exception raised when calling IEndpointInstance.Send() from ASP.Net MVC controller class.\r\n\r\nIEndpointInstance is injected into contructor of ASP.Net MVC controller class.\r\n\r\n```\r\n   await ServiceEndpoint.Send(new TestMessage\r\n            {\r\n                TaskId = taskOrder.TaskId,\r\n            });\r\n```\r\n```\r\nSystem.ObjectDisposedException:\r\n   at NServiceBus.CommonObjectBuilder.ThrowIfDisposed (NServiceBus.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c: C:\\BuildAgent\\work\\3206e2123f54fce4\\src\\NServiceBus.Core\\Forwarding\\ForwardingContext.cs)\r\n   at NServiceBus.CommonObjectBuilder.BuildAll (NServiceBus.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c: C:\\BuildAgent\\work\\3206e2123f54fce4\\src\\NServiceBus.Core\\ObjectBuilder\\Common\\CommonObjectBuilder.cs: 48)\r\n   at NServiceBus.MutateOutgoingMessageBehavior+<Invoke>d__0.MoveNext (NServiceBus.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c: C:\\BuildAgent\\work\\3206e2123f54fce4\\src\\NServiceBus.Core\\Pipeline\\MutateInstanceMessage\\MutateOutgoingMessageBehavior.cs: 25)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at NServiceBus.UnicastSendRouterConnector+<Invoke>d__2.MoveNext (NServiceBus.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c: C:\\BuildAgent\\work\\3206e2123f54fce4\\src\\NServiceBus.Core\\Routing\\Routers\\UnicastSendRouterConnector.cs: 79)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at External.Api.Controllers.SubscriptionController+<CreateAsync>d__16.MoveNext (External.Api, Version=1.0.16350.1, Culture=neutral, PublicKeyToken=null: C:\\a\\1\\s\\src\\External.Api\\Controllers\\SubscriptionController.cs: 103)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Threading.Tasks.TaskHelpersExtensions+<CastToObject>d__3`1.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker+<InvokeActionAsyncCore>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Filters.ActionFilterAttribute+<CallOnActionExecutedAsync>d__5.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Web.Http.Filters.ActionFilterAttribute+<CallOnActionExecutedAsync>d__5.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Filters.ActionFilterAttribute+<ExecuteActionFilterAsyncCore>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Controllers.ActionFilterResult+<ExecuteAsync>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute+<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute+<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Controllers.AuthenticationFilterResult+<ExecuteAsync>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult+<ExecuteAsync>d__0.MoveNext (System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/269489457","html_url":"https://github.com/Particular/NServiceBus/issues/4413#issuecomment-269489457","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/4413","id":269489457,"user":{"login":"ottarhenanger","id":981641,"avatar_url":"https://avatars.githubusercontent.com/u/981641?v=3","gravatar_id":"","url":"https://api.github.com/users/ottarhenanger","html_url":"https://github.com/ottarhenanger","followers_url":"https://api.github.com/users/ottarhenanger/followers","following_url":"https://api.github.com/users/ottarhenanger/following{/other_user}","gists_url":"https://api.github.com/users/ottarhenanger/gists{/gist_id}","starred_url":"https://api.github.com/users/ottarhenanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottarhenanger/subscriptions","organizations_url":"https://api.github.com/users/ottarhenanger/orgs","repos_url":"https://api.github.com/users/ottarhenanger/repos","events_url":"https://api.github.com/users/ottarhenanger/events{/privacy}","received_events_url":"https://api.github.com/users/ottarhenanger/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T15:07:50Z","updated_at":"2016-12-28T15:07:50Z","body":"Is the problem that my IEndpointInstance has been disposed? Based on the error message I don't understand if it is my IEndpointInstance that has been disposed, or some internal resource in NServiceBus."}}
{"actor":{"display_login":"ottarhenanger"}}