title: Not able to publish Azure Mobile App properly
body: <p>I have implemented Azure Mobile App and Xamarin.Forms Client application. I want user to login using facebook from Phone and also want to fetch user's profile data. For this I have implemented the additional call/method into API controller in Azure Mobile App. I have followed steps and put the code as per your article but somehow get following error message when I run the Mobile App on localhost or trying to publish</p>
  
  <blockquote>
    <p>Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('') found multiple controllers defined with the same name but differing namespaces, which is not supported. The request for 'Home' has found the following matching controllers: </p>
    
    <p>Microsoft.Azure.Mobile.Server.Controllers.HomeController Microsoft.WindowsAzure.Mobile.Service.Controllers.HomeController</p>
  </blockquote>
  
  <p>I understand this is related config settings. I have following code in place</p>
  
  <pre><code>    HttpConfiguration config = new HttpConfiguration();
  
      new MobileAppConfiguration()
                  .UseDefaultConfiguration()
                  .ApplyTo(config);
  
      app.UseWebApi(config);
      app.UseAppServiceAuthentication(new AppServiceAuthenticationOptions
      {
          SigningKey = ConfigurationManager.AppSettings["SigningKey"],
          ValidAudiences = new[] { ConfigurationManager.AppSettings["ValidAudience"] },
          ValidIssuers = new[] { ConfigurationManager.AppSettings["ValidIssuer"] },
          TokenHandler = config.GetAppServiceTokenHandler()
      });
  </code></pre>
  
  <p>If I remove the default configuration from above then exception message go away but in that case I don't see the app getting hosted properly i.e. it is showing blank page in browser instead of ready page shown once app is hosted properly.</p>