UserCookieAuthentication no Mono 3.4.1

Sempre que adiciono a linha abaixo à minha classe de inicialização, recebo a exceção abaixo. Este é um exe auto-hospedado que funciona em mono (Ubuntu). Funciona bem no Windows. Eu reduzi a chamada UseCookieAuthentication. Eu posso instanciar as opções sem nenhum problema. Alguma idéia do que está acontecendo aqui? Tenho aspnet Identity funcionando e EF6 / MySql.

app.UseCookieAuthentication(new CookieAuthenticationOptions());

Exceção não tratada: System.Reflection.TargetInvocationException: exceção foi lançada pelo destino de uma chamada. ---> System.TypeLoadException: não foi possível carregar o tipo 'Microsoft.Owin.Security.DataProtection.DpapiDataProtector' do assembly 'Microsoft.Owin.Security, versão = 2.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35'. em Microsoft.Owin.Security.DataProtection.AppBuilderExtensions.CreateDataProtector (Owin.IAppBuilder, string []) <0x00052> em Microsoft.Owin.Security.Cookies.CookieAuthenticationMiddleware..ctor (Microsoft.Owin.OwinMiddleware, Owin.IAppBuilder, Microsoft. Owin.Security.Cookies.CookieAuthenticationOptions) <0x00223> at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure, Microsoft.Owin.OwinMiddleware, Owin.IAppBuilder, Microsoft.Owin.Security.Cookies.CookieAuthenticationOptions) <0x00048> em (wrapper gerenciado para nativo) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod, objeto, objeto [], System.Exception &) <0x00067> em System.Reflection.MonoMethod.Invoke (objeto, System.Reflection.BindingFlags, System.Reflection.Binder, objeto [], System.Globalization.CultureInfo) <0x000d7>

--- Fim do rastreamento da pilha de exceção interna --- na System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder fichário, System.Object [] parâmetros, System.Object [] parâmetros, System.Globalization.CultureInfo cultura) [0x00000] em: 0 em System.Reflection.MethodBase.Invoke (Obj. System.Object, parâmetros System.Object []) [0x00000] em: 0 em System.Delegate.DynamicInvokeImpl (System.Object [] args) [0x00000] em: 0 em System.MulticastDelegate.DynamicInvokeImpl (System.Object [] args) [0x00000] em: 0 em System.Delegate.DynamicInvoke (System.Object [] args) [0x00000] em: 0 em Microsoft.Owin.Builder. AppBuilder.BuildInternal (assinatura System.Type) [0x00000] em: 0 em Microsoft.Owin.Builder.AppBuilder.Build (System.Type returnType) [0x00000] em: 0 em Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create ( Construtor IAppBuilder) [0x00000] em: 0 no Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (contexto Microsoft.Owin.Hosting.Engine.StartContext) [0x00000] em: 0 na Micros oft.Owin.Hosting.Engine.HostingEngine.Start (contexto Microsoft.Owin.Hosting.Engine.StartContext) [0x00000] em: 0 na opção Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions ) [0x00000] em: 0 no Microsoft.Owin.Hosting.Starter.HostingStarter.Start (opções Microsoft.Owin.Hosting.StartOptions) [0x00000] em: 0 no Microsoft.Owin.Hosting.WebApp.StartImplementation (serviços IServiceProvider, Microsoft Opções .Owin.Hosting.StartOptions) [0x00000] em: 0 em Microsoft.Owin.Hosting.WebApp.Start (opções de Microsoft.Owin.Hosting.StartOptions) [0x00000] em: 0 em Microsoft.Owin.Hosting.WebApp.Start [Inicialização] (opções Microsoft.Owin.Hosting.StartOptions) [0x00000] em: 0 em Microsoft.Owin.Hosting.WebApp.Start [Inicialização] (URL de System.String) [0x00000] em: 0 em HelloWorldNancy.Program.Main (System.String [] args) [0x00000] em: 0 [ERRO] EXCEÇÃO FATAL SEM MANUSEIO: System.Reflection.TargetInvocationException: exceção foi lançada pelo destino de uma chamada. ---> System.TypeLoadException: não foi possível carregar o tipo 'Microsoft.Owin.Security.DataProtection.DpapiDataProtector' do assembly 'Microsoft.Owin.Security, versão = 2.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35'. em Microsoft.Owin.Security.DataProtection.AppBuilderExtensions.CreateDataProtector (Owin.IAppBuilder, string []) <0x00052> em Microsoft.Owin.Security.Cookies.CookieAuthenticationMiddleware..ctor (Microsoft.Owin.OwinMiddleware, Owin.IAppBuilder, Microsoft. Owin.Security.Cookies.CookieAuthenticationOptions) <0x00223> at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure, Microsoft.Owin.OwinMiddleware, Owin.IAppBuilder, Microsoft.Owin.Security.Cookies.CookieAuthenticationOptions) <0x00048> em (wrapper gerenciado para nativo) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod, objeto, objeto [], System.Exception &) <0x00067> em System.Reflection.MonoMethod.Invoke (objeto, System.Reflection.BindingFlags, System.Reflection.Binder, objeto [], System.Globalization.CultureInfo) <0x000d7>

--- Fim do rastreamento da pilha de exceção interna --- na System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder fichário, System.Object [] parâmetros, System.Object [] parâmetros, System.Globalization.CultureInfo cultura) [0x00000] em: 0 em System.Reflection.MethodBase.Invoke (Obj. System.Object, parâmetros System.Object []) [0x00000] em: 0 em System.Delegate.DynamicInvokeImpl (System.Object [] args) [0x00000] em: 0 em System.MulticastDelegate.DynamicInvokeImpl (System.Object [] args) [0x00000] em: 0 em System.Delegate.DynamicInvoke (System.Object [] args) [0x00000] em: 0 em Microsoft.Owin.Builder. AppBuilder.BuildInternal (assinatura System.Type) [0x00000] em: 0 em Microsoft.Owin.Builder.AppBuilder.Build (System.Type returnType) [0x00000] em: 0 em Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create ( Construtor IAppBuilder) [0x00000] em: 0 no Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (contexto Microsoft.Owin.Hosting.Engine.StartContext) [0x00000] em: 0 na Micros oft.Owin.Hosting.Engine.HostingEngine.Start (contexto Microsoft.Owin.Hosting.Engine.StartContext) [0x00000] em: 0 na opção Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions ) [0x00000] em: 0 no Microsoft.Owin.Hosting.Starter.HostingStarter.Start (opções Microsoft.Owin.Hosting.StartOptions) [0x00000] em: 0 no Microsoft.Owin.Hosting.WebApp.StartImplementation (serviços IServiceProvider, Microsoft Opções .Owin.Hosting.StartOptions) [0x00000] em: 0 em Microsoft.Owin.Hosting.WebApp.Start (opções de Microsoft.Owin.Hosting.StartOptions) [0x00000] em: 0 em Microsoft.Owin.Hosting.WebApp.Start [Inicialização] (opções Microsoft.Owin.Hosting.StartOptions) [0x00000] em: 0 em Microsoft.Owin.Hosting.WebApp.Start [Inicialização] (URL de System.String) [0x00000] em: 0 em HelloWorldNancy.Program.Main (System.String [] args) [0x00000] em: 0

questionAnswers(1)

yourAnswerToTheQuestion