title: InvalidOperationException: No OWIN authentication manager is associated with the request
body: <p>I created a new WebAPI project (VS 2013, .net framework 4.5.1, c#) with the example template, Added a new controller and tested this on my local computer. In my computer, everything is working good (debug \ release). </p>
  
  <p>When publishing this to Azure hosting, I'm getting this error message:</p>
  
  <pre><code>ExceptionMessage=No OWIN authentication manager is associated with the request.
  ExceptionType=System.InvalidOperationException
  Message=An error has occurred.
  StackTrace=   at System.Web.Http.Owin.PassiveAuthenticationMessageHandler.SuppressDefaultAuthenticationChallenges(HttpRequestMessage request)
     at System.Web.Http.Owin.PassiveAuthenticationMessageHandler.&lt;SendAsync&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.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
     at System.Web.Http.HttpServer.&lt;SendAsync&gt;d__0.MoveNext()
  </code></pre>
  
  <p>I have no clue what the reason. So, I Googled it. 
  Solutions I'm have tried:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/21089196/no-owin-authentication-manager-is-associated-with-the-request">According to this report</a>, I'm tried to add this (Microsoft.Owin.Host.SystemWeb) nuget package, without solving my problem.</li>
  <li><a href="https://stackoverflow.com/questions/25933975/elmah-showing-no-owin-authentication-manager-is-associated-with-the-request?lq=1">According to this solution</a>, the user advice to change some code line to this:
  Microsoft.AspNet.WebApi.Owin(UseOwinMethod)</li>
  </ul>
  
  <p>I'm didn't understand, where I'm should place this code line (and replace which code line in my existing project).</p>
  
  <p>Thank you for helping.</p>