{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1600","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1600/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1600/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1600/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/1600","id":187898347,"number":1600,"title":"Multiple custom attributes of the same type found. c# exception","user":{"login":"alokraj68","id":9208731,"avatar_url":"https://avatars.githubusercontent.com/u/9208731?v=3","gravatar_id":"","url":"https://api.github.com/users/alokraj68","html_url":"https://github.com/alokraj68","followers_url":"https://api.github.com/users/alokraj68/followers","following_url":"https://api.github.com/users/alokraj68/following{/other_user}","gists_url":"https://api.github.com/users/alokraj68/gists{/gist_id}","starred_url":"https://api.github.com/users/alokraj68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alokraj68/subscriptions","organizations_url":"https://api.github.com/users/alokraj68/orgs","repos_url":"https://api.github.com/users/alokraj68/repos","events_url":"https://api.github.com/users/alokraj68/events{/privacy}","received_events_url":"https://api.github.com/users/alokraj68/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-08T04:18:50Z","updated_at":"2016-11-09T13:35:36Z","closed_at":null,"body":"Hi,\r\nMy bot works in an instance in Azure, but when i tried to upload it to another instance, it stopped responding. Am getting the following exception.\r\n\r\n\r\nBecause of this we got rejected from Bot framework. \r\n@willportnoy Please help.\r\n\r\n```\r\nInternalServerError\r\n{\r\n  \"message\": \"An error has occurred.\",\r\n  \"exceptionMessage\": \"Multiple custom attributes of the same type found.\",\r\n  \"exceptionType\": \"System.Reflection.AmbiguousMatchException\",\r\n  \"stackTrace\": \"   at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit)\\r\\n   at Microsoft.Rest.ServiceClient`1.get_FrameworkVersion()\\r\\n   at Microsoft.Rest.ServiceClient`1.SetDefaultUserAgentInfo()\\r\\n   at Microsoft.Rest.ServiceClient`1.SetUserAgent(String productName, String version)\\r\\n   at Microsoft.Rest.ServiceClient`1.InitializeHttpClient(HttpClientHandler httpClientHandler, DelegatingHandler[] handlers)\\r\\n   at Microsoft.Bot.Connector.ConnectorClient..ctor(Uri baseUri, DelegatingHandler[] handlers)\\r\\n   at Microsoft.Bot.Connector.ConnectorClient..ctor(Uri baseUri, String microsoftAppId, String microsoftAppPassword, DelegatingHandler[] handlers)\\r\\n   at HoroscopeBot.MessagesController.<Post>d__1.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/259415761","html_url":"https://github.com/Microsoft/BotBuilder/issues/1600#issuecomment-259415761","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1600","id":259415761,"user":{"login":"Raphhhhh","id":22241378,"avatar_url":"https://avatars.githubusercontent.com/u/22241378?v=3","gravatar_id":"","url":"https://api.github.com/users/Raphhhhh","html_url":"https://github.com/Raphhhhh","followers_url":"https://api.github.com/users/Raphhhhh/followers","following_url":"https://api.github.com/users/Raphhhhh/following{/other_user}","gists_url":"https://api.github.com/users/Raphhhhh/gists{/gist_id}","starred_url":"https://api.github.com/users/Raphhhhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raphhhhh/subscriptions","organizations_url":"https://api.github.com/users/Raphhhhh/orgs","repos_url":"https://api.github.com/users/Raphhhhh/repos","events_url":"https://api.github.com/users/Raphhhhh/events{/privacy}","received_events_url":"https://api.github.com/users/Raphhhhh/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T13:35:36Z","updated_at":"2016-11-09T13:35:36Z","body":"@alokraj68 I got this exception\r\nException type : System.Reflection.AmbiguousMatchException\r\n…\r\nFailed method : Autofac.RegistrationExtensions+<>c__DisplayClass5_0`1.<Register>b__0\r\n\r\nthen when I look the exception message i get a big one : \r\n\r\n`An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IPostToBot (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IPostToBot], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DialogTaskManagerBotDataLoader (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IBotData], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = JObjectBotData (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.JObjectBotData], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = CachingBotDataStore (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IBotDataStore`1[[Microsoft.Bot.Connector.BotData, Microsoft.Bot.Connector, Version=3.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConnectorStore (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IStateClient (DelegateActivator), Services = [Microsoft.Bot.Connector.IStateClient], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Multiple custom attributes of the same type found. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DialogTaskManagerBotDataLoader (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IBotData], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = JObjectBotData (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.JObjectBotData], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = CachingBotDataStore (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IBotDataStore`1[[Microsoft.Bot.Connector.BotData, Microsoft.Bot.Connector, Version=3.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConnectorStore (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IStateClient (DelegateActivator), Services = [Microsoft.Bot.Connector.IStateClient], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Multiple custom attributes of the same type found. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = JObjectBotData (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.JObjectBotData], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = CachingBotDataStore (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IBotDataStore`1[[Microsoft.Bot.Connector.BotData, Microsoft.Bot.Connector, Version=3.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConnectorStore (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IStateClient (DelegateActivator), Services = [Microsoft.Bot.Connector.IStateClient], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Multiple custom attributes of the same type found. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = CachingBotDataStore (DelegateActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.IBotDataStore`1[[Microsoft.Bot.Connector.BotData, Microsoft.Bot.Connector, Version=3.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConnectorStore (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IStateClient (DelegateActivator), Services = [Microsoft.Bot.Connector.IStateClient], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Multiple custom attributes of the same type found. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ConnectorStore (ReflectionActivator), Services = [Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IStateClient (DelegateActivator), Services = [Microsoft.Bot.Connector.IStateClient], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Multiple custom attributes of the same type found. (See inner exception for details.) (See inner exception for details.)An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IStateClient (DelegateActivator), Services = [Microsoft.Bot.Connector.IStateClient], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Multiple custom attributes of the same type found. (See inner exception for details.)Multiple custom attributes of the same type found.\r\n`\r\n\r\nThis is when I call my dialog `await Conversation.SendAsync(activity, () => dialog);` ."}}
{"actor":{"display_login":"Raphhhhh"}}