title: Field not found: 'Microsoft.Bot.Builder.Dialogs.Conversation.Container' when upgrading to bot framewotk 3.8.1
body: <p>We are using Auth bot and after upgrading the bot framework to 3.8.1 we have been getting the following exception when trying to log into our bot:</p>
  
  <pre><code>&lt;Error&gt;
  &lt;Message&gt;An error has occurred.&lt;/Message&gt;
  &lt;ExceptionMessage&gt;
  Field not found: 'Microsoft.Bot.Builder.Dialogs.Conversation.Container'.
  &lt;/ExceptionMessage&gt;
  &lt;ExceptionType&gt;System.MissingFieldException&lt;/ExceptionType&gt;
  &lt;StackTrace&gt;
  at AuthBot.Controllers.OAuthCallbackController.&lt;OAuthCallback&gt;d__3.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine&amp; stateMachine) at AuthBot.Controllers.OAuthCallbackController.OAuthCallback(String code, String state, CancellationToken cancellationToken) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.&lt;&gt;c__DisplayClass12.&lt;GetExecutor&gt;b__8(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.&lt;SendAsync&gt;d__1.MoveNext()
  &lt;/StackTrace&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>I'm guessing there should be somewhere where we should add Conversation.Container but not sure where.</p>
  
  <p>Here is some relevant code we have:</p>
  
  <pre><code>public class CustomModule : Module
      {
          /// &lt;summary&gt;
          /// Allows adding custom registrations to the container builder.
          /// In this case we are adding the CustomPostToUser registration.
          /// &lt;/summary&gt;
          protected override void Load(ContainerBuilder builder)
          {
              Ensure.ArgIsNotNull(builder, nameof(builder));
  
              builder.RegisterType&lt;CustomPostToUser&gt;().Keyed&lt;IPostToBot&gt;(typeof(CustomPostToUser)).InstancePerLifetimeScope();
              builder.RegisterAdapterChain&lt;IPostToBot&gt;
              (
                  typeof(EventLoopDialogTask),
                  typeof(SetAmbientThreadCulture),
                  typeof(PersistentDialogTask),
                  typeof(ExceptionTranslationDialogTask),
                  typeof(SerializeByConversation),
                  typeof(CustomPostToUser),
                  typeof(LogPostToBot)
              )
              .InstancePerLifetimeScope();
          }
  
          /// &lt;summary&gt;
          /// Registers the given adapter chain to the container builder.
          /// &lt;/summary&gt;
          public static IRegistrationBuilder&lt;TLimit, SimpleActivatorData, SingleRegistrationStyle&gt; RegisterAdapterChain&lt;TLimit&gt;(ContainerBuilder builder, params Type[] types)
          {
              Ensure.ArgIsNotNull(builder, nameof(builder));
  
              return
                  builder
                  .Register(c =&gt;
                  {
                      var service = default(TLimit);
                      return types.Aggregate(service, (current, t) =&gt; c.ResolveKeyed&lt;TLimit&gt;(t, TypedParameter.From(current)));
                  })
                  .As&lt;TLimit&gt;();
          }
      }
  
      static MessagesController()
      {
  
          Conversation.UpdateContainer(builder =&gt;
          {
              builder.RegisterType&lt;MessageActivityLogger&gt;().AsImplementedInterfaces().InstancePerDependency();
              builder.RegisterModule(new ReflectionSurrogateModule());
              builder.RegisterModule(new CustomModule());
          });
  
      }
  </code></pre>