Giter Site home page Giter Site logo

aspnet / dataprotection Goto Github PK

View Code? Open in Web Editor NEW
130.0 53.0 90.0 1.66 MB

[Archived] Data Protection APIs for protecting and unprotecting data. Project moved to https://github.com/aspnet/AspNetCore

License: Apache License 2.0

Shell 0.81% C# 98.18% Batchfile 0.04% PowerShell 0.97%
aspnet-product

dataprotection's Introduction

DataProtection [Archived]

This GitHub project has been archived. Ongoing development on this project can be found in https://github.com/aspnet/AspNetCore.

Data Protection APIs for protecting and unprotecting data.

This project is part of ASP.NET Core. You can find documentation for Data Protection in the ASP.NET Core Documentation. You can find samples, documentation and getting started instructions for ASP.NET Core at the AspNetCore repo.

Community Maintained Data Protection Providers & Projects

dataprotection's People

Contributors

ajaybhargavb avatar anpete avatar aspnetci avatar blowdart avatar brennanconroy avatar bricelam avatar chengtian avatar dansward avatar davidfowl avatar dougbu avatar eilon avatar grabyourpitchforks avatar halter73 avatar haok avatar javiercn avatar jhawk42 avatar juntaoluo avatar kichalla avatar loudej avatar mikary avatar mikeharder avatar natemcmaster avatar ntaylormullen avatar ocinbat avatar pakrym avatar pranavkm avatar ryanbrandenburg avatar smitpatel avatar tratcher avatar troydai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dataprotection's Issues

Crash on DNX451 under Mono 3.12.1

Ran into this running an MVC application using the nightly DNX bits; managed to narrow it down to this repro command-line project:

project.json:

{
    "version": "1.0.0-*",
    "dependencies": {
        "Microsoft.AspNet.DataProtection": "1.0.0-*",
        "Microsoft.Framework.DependencyInjection": "1.0.0-*"
    },
    "commands": { 
        "run": "run"
    },
    "frameworks": {
        "dnx451": { }
    }
}

Program.cs:

using Microsoft.Framework.DependencyInjection;
using Microsoft.AspNet.DataProtection.KeyManagement;

namespace ConsoleApp1
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var services = new ServiceCollection();
            services.AddDataProtection();
            var provider = services.BuildServiceProvider();
            var encryptor = provider.GetService<IKeyManager>();
        }
    }
}

Crash text:

Can't find custom attr constructor image: /home/mark/.dnx/packages/Microsoft.AspNet.Cryptography.Internal/1.0.0-beta4-11051/lib/dnx451/Microsoft.AspNet.Cryptography.Internal.dll mtoken: 0x0a000004
* Assertion at class.c:5695, condition `!mono_loader_get_last_error ()' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at Microsoft.Framework.DependencyInjection.DataProtectionServices/<>c.<GetDefaultServices>b__0_0 (System.IServiceProvider) <0x001c7>
  at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
  at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
  at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
  at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.<RealizeService>b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
  at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
  at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetService<T> (System.IServiceProvider) <0x0002d>
  at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager..ctor (System.IServiceProvider) <0x000ff>
  at Microsoft.Framework.DependencyInjection.DataProtectionServiceDescriptors/<>c.<IKeyManager_Default>b__8_0 (System.IServiceProvider) <0x00027>
  at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
  at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
  at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
  at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.<RealizeService>b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
  at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
  at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetService<T> (System.IServiceProvider) <0x0002d>
  at ConsoleApp1.Program.Main (string[]) <0x000e3>                                                                                                                               
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>                                                                     
  at <unknown> <0xffffffff>                                                                                                                                                      
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>                       
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000d7>                    
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>                                                                                                             
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly,string[],System.IServiceProvider) <0x0010b>                                       
  at Microsoft.Framework.ApplicationHost.Program.ExecuteMain (Microsoft.Framework.Runtime.DefaultHost,string,string[]) <0x005af>                                                 
  at Microsoft.Framework.ApplicationHost.Program.Main (string[]) <0x0043f>                                                                                                       
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this___object (object,intptr,intptr,intptr) <0xffffffff>                                                           
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000d7>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly,string[],System.IServiceProvider) <0x0010b>
  at dnx.host.Bootstrapper.RunAsync (System.Collections.Generic.List`1<string>) <0x0045f>
  at dnx.host.RuntimeBootstrapper.ExecuteAsync (string[]) <0x00737>
  at dnx.host.RuntimeBootstrapper.Execute (string[]) <0x00057>
  at EntryPoint.Main (string[]) <0x0029b>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/lib/libmonosgen-2.0.so.1(+0xcf10a) [0x7f13221dd10a]
        /usr/lib/libpthread.so.0(+0x10740) [0x7f1321f01740]
        /usr/lib/libc.so.6(gsignal+0x37) [0x7f1321b814b7]
        /usr/lib/libc.so.6(abort+0x16a) [0x7f1321b8288a]
        /usr/lib/libmonosgen-2.0.so.1(+0x25a5c9) [0x7f13223685c9]
        /usr/lib/libmonosgen-2.0.so.1(+0x25a83c) [0x7f132236883c]
        /usr/lib/libmonosgen-2.0.so.1(+0x25a9d3) [0x7f13223689d3]
        /usr/lib/libmonosgen-2.0.so.1(+0x149544) [0x7f1322257544]
        /usr/lib/libmonosgen-2.0.so.1(+0x1493be) [0x7f13222573be]
        /usr/lib/libmonosgen-2.0.so.1(mono_field_from_token+0x115) [0x7f132227ef35]
        /usr/lib/libmonosgen-2.0.so.1(+0x792c7) [0x7f13221872c7]
        /usr/lib/libmonosgen-2.0.so.1(+0x461d6) [0x7f13221541d6]
        /usr/lib/libmonosgen-2.0.so.1(+0x49a1c) [0x7f1322157a1c]
        /usr/lib/libmonosgen-2.0.so.1(+0x4a48b) [0x7f132215848b]
        /usr/lib/libmonosgen-2.0.so.1(+0xd1781) [0x7f13221df781]
        [0x40dd1172]

Debug info from gdb:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Aborted (core dumped)

System Info:

  • Arch Linux (kernel 3.14.35)
  • Mono 3.12.1 from Arch packages
  • DNX 1.0.0-beta4-11308 Mono
  • Microsoft.AspNet.DataProtection 1.0.0-beta4-11051
  • Microsoft.AspNet.Cryptography.Internal 1.0.0-beta4-11051

DataProtection: XmlNamespace, Configuration, Options

After review the following error and the associated assembly source, I'm led to believe this error is associated with configuring, the equivalent machineKey section found in the machine or web.config, DataProtection.

For example the CngCbcAuthenticatedEncryptorConfiguration.cs references the http://www.asp.net/2014/dataProtection/cng xmlnamespace. I also found the CngCbcAuthenticatedEncryptorConfigurationOptions.cs which implies configuring the option in Startup.cs.

One final thought, I aslo found https://support.microsoft.com/kb/2915218 which contains powershell scripts for Generate-MachineKey or Provision-AutoGenKeys.

So, what is the preferred way to configure the DataProtection to avoid the error below?

An unhandled exception occurred while processing the request.
CryptographicException: Key not valid for use in specified state.

Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.UnprotectWithDpapiImpl(Byte* pbProtectedData, UInt32 cbProtectedData, Byte* pbOptionalEntropy, UInt32 cbOptionalEntropy)

Stack 
Query 
Cookies 
400 Headers 
Environment 
CryptographicException: Key not valid for use in specified state. 
Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.UnprotectWithDpapiImpl(Byte* pbProtectedData, UInt32 cbProtectedData, Byte* pbOptionalEntropy, UInt32 cbOptionalEntropy)
Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.UnprotectWithDpapi(Byte[] protectedSecret)
400 
Microsoft.AspNet.Security.DataProtection.XmlEncryption.DpapiXmlDecryptor.Decrypt(XElement encryptedElement)
Microsoft.AspNet.Security.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptorConfigurationXmlReader.FromXml(XElement element)
Microsoft.AspNet.Security.DataProtection.KeyManagement.XmlKeyManager.ParseKeyElement(XElement keyElement)
Microsoft.AspNet.Security.DataProtection.KeyManagem 400 ent.XmlKeyManager.GetAllKeys()
Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingProvider.CreateCachedKeyRingInstanceUnderLock(DateTime utcNow, CachedKeyRing existingCachedKeyRing)
Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRing()
Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(Byte[] unprotectedData)
400 
Microsoft.AspNet.Security.DataHandler.SecureDataFormat`1.Protect(TData data)
Microsoft.AspNet.Security.Google.GoogleAuthenticationHandler.BuildChallengeUrl(AuthenticationProperties properties, String redirectUri)
Microsoft.AspNet.Security.OAuth.OAuthAuthenticationHandler`2.ApplyResponseChallenge()
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.ApplyResponseChallengeAsync()
400 
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.<ApplyResponseCoreAsync>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Se 400 curity.Infrastructure.AuthenticationHandler.<ApplyResponseAsync>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.Authentication 400 Handler.<TeardownAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.<TeardownAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
400 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
400 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
400 
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
400 
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.Comp 400 ilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous 400 location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
400 
Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__4.MoveNext()
Variable Value 
authenticationType Google 

< 400 div id="headerspage" class="page"> Variable Value 
Accept application/json, text/plain, */* 
Accept-Encoding gzip, deflate, sdch 
Accept-Language en-US,en;q=0.8 
400  Connection keep-alive 
Cookie .AspNet.Correlation.Google=VpRqdBW-jM7ZSLM-GqS91j-s58vHN7CAotDK9IsNMYs 
Host localhost:8080 
Referer http://localhost:8080/ 
User-Agent Mozilla/5.0 (W 400 indows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36 

DataProtection issue on full IIS

This error is hit on full IIS with latest beta1 KRE and DataProtection package

When MusicStore is deployed on full IIS, requesting the 'Login' page is throwing an error saying 'Cannot access folder 'ASP.NET\Beta''. This error is blocking running MusicStore on full IIS and desktop CLR

I talked to @GrabYourPitchforks and this is an easy fix which we verified locally. He will send a PR shortly

Thanks to @kirthik for finding the issue

Change default key lifetime from 6 months to 3 months

We bumped the default key lifetime up to 6 months for Beta so that any bugs in the key rolling mechanism are less likely to affect Beta applications. We'll bump it back down to 3 months for RTM once we've fleshed bugs out of this system.

ProtectWithDpapi throws CryptographicException

Music Store fails on css when running as Administrator

[ERROR:Microsoft.AspNet.Server.WebListener.MessagePump] ProcessRequestAsync
System.Security.Cryptography.CryptographicException: Access is denied.
   at Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.ProtectWithDpapiImpl(Byte*
 pbSecret, UInt32 cbSecret, Byte* pbOptionalEntropy, UInt32 cbOptionalEntropy, Boolean fLocalMachine)
   at Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.ProtectWithDpapi(ISecret secret,
Boolean protectToLocalMachine)
   at Mic
rosoft.AspNet.Security.DataProtection.XmlEncryption.DpapiXmlEncryptor.Encrypt(XElement plaintextElement)
   at Microsoft.AspNet.Security.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptorConfiguration.Encryp
tSecret(IXmlEncryptor encryptor
)
   at Microsoft.AspNet.Security.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptorConfiguration.ToXml(
IXmlEncryptor xmlEncryptor)
   at Microsoft.AspNet.Security.DataProtection.KeyManagement.XmlKeyManager.CreateNewKey(Guid keyId, DateT
imeOffset creationDate, DateTimeOffset activationDate, DateTimeOffset expirationDate)
   at Microsoft.AspNet.Security.DataProtection.KeyManagement.XmlKeyManager.CreateNewKey(DateTimeOffset activationDate,
DateTimeOffset expirationDate)
   at Microsoft.As
pNet.Security.DataProtection.KeyManagement.KeyRingProvider.CreateCachedKeyRingInstanceUnderLock(DateTime utcNow,
CachedKeyRing existingCachedKeyRing)
   at Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRing()
   at M
icrosoft.AspNet.Security.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(Byte[] unprotectedData)
   at Microsoft.AspNet.SignalR.Infrastructure.DataProtectionProviderProtectedData.Protect(String data, String purpose)
   at Microsoft.AspNet.
SignalR.PersistentConnection.ProcessNegotiationRequest(HttpContext context)
   at Microsoft.AspNet.SignalR.PersistentConnection.<ProcessRequestCore>d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Syste
m.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNet.Builder.Extensions.MapMiddleware.<Invoke>d__3.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 Microsoft.AspNet.Server.WebListener.MessagePump.<ProcessRequestAsync>d__19.MoveNext()

There is workaround:

services.AddInstance<IXmlEncryptor>(new DpapiXmlEncryptor(true));

but adding this bug here to investigate. We need to see if this happens under different credentials too.

To repro, try to access the registration page in MusicStore.

Handle OS types in CreateFromDpapi

We have CreateFromDpapi and CreateFromLegacyDpapi method to create a provider for windows and mono respectively. We should have one api exposed and we should handle the OS types internally

Remove "BETA" from the auto-gen keys folder path

This line will be merged to dev in the near future:
string autoGenKeysPath = Path.Combine(appDataPath, @"Microsoft\ASP.NET\Crypto\AutoGenKeys.BETA");

The only reason for this is to protect applications against the key format changing between Beta and RTM. We should remove the BETA moniker in the RTM milestone.

Implement crypto agility

Allow the developer to specify which algorithms are used under the covers: BCrypt, managed types, etc.

Consider adding AddDataProtection() extension method to add default DataProtection services to a service collection

It seems that DataProtection defines and provides the default implementation of services but unlike most other framework components it only defines GetDefaultServices([IConfiguration]) method and not the AddDataProtection(this IServiceCollection, [IConfiguration]) sugar extension method. Adding the latter would improve consistency and would be useful for testing and for non-Web application scenarios that don't have Hosting (which adds DataProtectionServices.GetDefaultSErvices() implicitly) but still want to take advantage of these services using DI and a friendlier API.

The Microsoft.AspNet.Cryptography.Internal library does not load on Mono

This library is using some custom attribute that is not normally used causing a crash on Mono:

dylan@ubuntu-server:/var/www/Code/dylannet/vnext/mypim$ k web
Can't find custom attr constructor image: /home/dylan/.k/packages/Microsoft.AspNet.Cryptography.Internal/1.0.0-beta4-10923/lib/aspnet50/Microsoft.AspNet.Cryptography.Internal.dll mtoken: 0x0a000004
* Assertion at class.c:5748, condition `!mono_loader_get_last_error ()' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at Microsoft.Framework.DependencyInjection.DataProtectionServiceCollectionExtensions.AddDataProtection (Microsoft.Framework.DependencyInjection.IServiceCollection,Microsoft.Framework.ConfigurationModel.IConfiguration) <0x0004b>
  at Microsoft.Framework.DependencyInjection.MvcServiceCollectionExtensions.ConfigureDefaultServices (Microsoft.Framework.DependencyInjection.IServiceCollection,Microsoft.Framework.ConfigurationModel.IConfiguration) <0x00027>
  at Microsoft.Framework.DependencyInjection.MvcServiceCollectionExtensions.AddMvc (Microsoft.Framework.DependencyInjection.IServiceCollection,Microsoft.Framework.ConfigurationModel.IConfiguration) <0x00017>
  at mypim.Startup.ConfigureServices (Microsoft.Framework.DependencyInjection.IServiceCollection) <0x0001f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
* Assertion at loader.c:1908, condition `!mono_loader_get_last_error ()' not met

Aborted (core dumped)

FileSystemXmlRepository depends on Windows environment variables when running on CoreCLR

In FileSystemXmlRepository.cs, Line 106 the code assumes that either LOCALAPPDATA or USERPROFILE exists. If neither does, an ArugmentException will be thrown when Path.Combine is invoked, with null as an argument (since Environment.GetEnvironmentVarible returns null if the variable is not preset).

One could imagine changing the code to look like this:

            // On core CLR, we need to fall back to environment variables.
            var localAppDataPath = Environment.GetEnvironmentVariable("LOCALAPPDATA");
            var userProfilePath = Environment.GetEnvironmentVariable("USERPROFILE");

            // On non-windows, these environment varibles are normally not present
            if (localAppDataPath == null && userProfilePath == null)
            {
                return null;
            }

            var folderPath = localAppDataPath ?? Path.Combine(userProfilePath, "AppData", "Local");
            DirectoryInfo retVal = GetKeyStorageDirectoryFromBaseAppDataPath(folderPath);
            try
            {
                retVal.Create(); // throws if we don't have access, e.g., user profile not loaded
                return retVal;
            }
            catch
            {
                return null;
            }

But it's not clear to me that's the right thing long term.

Need a way to skip the authenticity check on protected data

Imagine that the same master key has been used in two different manners: an authentication cookie and some data encrypted in the database. In the first scenario, the payload itself must be both confidential and authentic. In the second scenario, the payload only has to be confidential, as authenticity is provided by the ACLs on the database.

If the cryptographic key material is compromised, we need the ability to revoke a key without deleting it from keyring entirely. That way authentication cookies (and other round-tripped data) can be rejected as potentially unauthentic, but persisted data (being read from the DB) can still be decrypted properly.

Could not load file or assembly 'Microsoft.AspNet.Security.DataProtection'

I'm opening this case so that other people who search for this error will hopefully encounter this and discover the solution!

In this particular case, I was using SignalR and had already exhaustively searched my entire hard drive for ANY remaining trace of any reference to "Microsoft.AspNet.Security.DataProtection". After finally reading through about half the source code to DataProtection, I discovered that the reference to the class name had been cleverly hidden in an ENCRYPTED portion of an XML file stashed away in my %APPDATA% directory.

FileNotFoundException: Could not load file or assembly 'Microsoft.AspNet.Security.DataProtection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
System.Type.GetType(String typeName, Boolean throwOnError)
Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager.ParseKeyElement(XElement keyElement)
Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager.GetAllKeys()
Microsoft.AspNet.DataProtection.KeyManagement.KeyRingProvider.CreateCachedKeyRingInstanceUnderLock(DateTime utcNow, CachedKeyRing existingCachedKeyRing)
Microsoft.AspNet.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRing()
Microsoft.AspNet.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(Byte[] unprotectedData)
Microsoft.AspNet.SignalR.Infrastructure.DataProtectionProviderProtectedData.Protect(String data, String purpose)

This took me about 4 hours to track down the cause of!

When upgrading to the new version with the new assembly name, you MUST delete the contents of the directory: %APPDATA%\Local\ASP.NET\keys-BETA or you will end up with this error! The xml file in this directory contains an encrypted representation of the assembly-qualified classname of the decryptor, which will be using the old "Security.DataProtection" assembly instead of the new one.

In order to mitigate the impact of this, I STRONGLY encourage the developers of DataProtection to include a guard that will prompt users to do this if the classname of the decryptor cannot be found, so nobody else needs to repeat my pain!

Running on mono (3.12.1) fails to run with an error in Microsoft.AspNet.Cryptography.Internal

> mono --version
Mono JIT compiler version 3.12.1 (tarball Fri Mar  6 19:12:47 UTC 2015)
>  dnx . web
Can't find custom attr constructor image: /home/azureuser/.dnx/packages/Microsoft.AspNet.Cryptography.Internal/1.0.0-beta4-11106/lib/dnx451/Microsoft.AspNet.Cryptography.Internal.dll mtoken: 0x0a000004
* Assertion at class.c:5695, condition `!mono_loader_get_last_error ()' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at Microsoft.Framework.DependencyInjection.DataProtectionServices/<GetDefaultServices>d__0.MoveNext () <0x002d7>
  at Microsoft.Framework.DependencyInjection.ServiceCollectionExtensions.TryAdd (Microsoft.Framework.DependencyInjection.IServiceCollection,System.Collections.Generic.IEnumerable`1<Microsoft.Framework.DependencyInjection.ServiceDescriptor>) <0x00087>
  at Microsoft.Framework.DependencyInjection.DataProtectionServiceCollectionExtensions.AddDataProtection (Microsoft.Framework.DependencyInjection.IServiceCollection) <0x00023>
  at Microsoft.Framework.DependencyInjection.MvcServiceCollectionExtensions.ConfigureDefaultServices (Microsoft.Framework.DependencyInjection.IServiceCollection) <0x0001f>
  at Microsoft.Framework.DependencyInjection.MvcServiceCollectionExtensions.AddMvc (Microsoft.Framework.DependencyInjection.IServiceCollection) <0x0000f>
  at HelloMvc.Startup.ConfigureServices (Microsoft.Framework.DependencyInjection.IServiceCollection) <0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000d7>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at Microsoft.AspNet.Hosting.Startup.ConfigureServicesBuilder.Invoke (object,Microsoft.Framework.DependencyInjection.IServiceCollection) <0x000e3>
  at Microsoft.AspNet.Hosting.Startup.ConfigureServicesBuilder/<>c__DisplayClass4_0.<Build>b__0 (Microsoft.Framework.DependencyInjection.IServiceCollection) <0x00023>
  at Microsoft.AspNet.Hosting.HostingEngine.EnsureApplicationServices (Microsoft.AspNet.Hosting.HostingContext) <0x00066>
  at Microsoft.AspNet.Hosting.HostingEngine.Start (Microsoft.AspNet.Hosting.HostingContext) <0x000d3>
  at Microsoft.AspNet.Hosting.Program.Main (string[]) <0x00397>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000d7>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly,string[],System.IServiceProvider) <0x0010b>
  at Microsoft.Framework.ApplicationHost.Program.ExecuteMain (Microsoft.Framework.Runtime.DefaultHost,string,string[]) <0x00343>
  at Microsoft.Framework.ApplicationHost.Program.Main (string[]) <0x0043f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this___object (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000d7>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly,string[],System.IServiceProvider) <0x0010b>
  at dnx.host.Bootstrapper.RunAsync (System.Collections.Generic.List`1<string>) <0x00457>
  at dnx.host.RuntimeBootstrapper.ExecuteAsync (string[]) <0x0079f>
  at dnx.host.RuntimeBootstrapper.Execute (string[]) <0x00057>
  at EntryPoint.Main (string[]) <0x0029b>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono() [0x4accac]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xfc90) [0x7f91de746c90]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f91de3a9e37]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f91de3ab528]
        mono() [0x6232f9]
        mono() [0x623507]
        mono() [0x623656]
        mono() [0x5182d7]
        mono() [0x51808d]
        mono(mono_field_from_token+0x153) [0x53e243]
        mono() [0x456d19]
        mono() [0x42c761]
        mono() [0x42e2bd]
        mono() [0x42ec4b]
        mono() [0x4af15e]
        [0x41b92166]

EphemeralDataProtectionProvider error on *Nix machines

Creating a new EphemeralDataProtectionProvider instance and doing Protect/Unprotect in the same instance is throwing error. Since Musicstore uses this, application user cannot confirm email or reset password on non windows machines

Configuring data protection is difficult when w3wp.exe runs as NETWORK SERVICE

Since w3wp.exe can run as NETWORK SERVICE in an Azure web role, the default implementation of DataProtectionServices.GetDefaultServices() returns a DPAPI-backed protector by default. The other services (like IKeyManager) aren't provided, and the application developer needs to register these manually.

Ideally all we'd really need is an IXmlEncryptor and an IXmlRepository, and if those two are provided we should be able to bootstrap the rest of the system ourselves.

Modify the non-DPAPI code paths to work on Mono

We don't want to use ProtectedData since it doesn't provide the authenticity guarantees we require when working with untrusted storage. We need to modify the code paths to use a fully managed encryptor when running on Mono.

CryptographicException when calling SignInManager.PasswordSiginAsync

Any idea why I get this error?

An unhandled exception occurred while processing the request.
CryptographicException: Key not valid for use in specified state.

Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.UnprotectWithDpapiImpl(Byte* pbProtectedData, UInt32 cbProtectedData, Byte* pbOptionalEntropy, UInt32 cbOptionalEntropy)

Stack 
Query 
Cookies 
400 Headers 
Environment 
CryptographicException: Key not valid for use in specified state. 
Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.UnprotectWithDpapiImpl(Byte* pbProtectedData, UInt32 cbProtectedData, Byte* pbOptionalEntropy, UInt32 cbOptionalEntropy)
Microsoft.AspNet.Security.DataProtection.Cng.DpapiSecretSerializerHelper.UnprotectWithDpapi(Byte[] protectedSecret)
400 
Microsoft.AspNet.Security.DataProtection.XmlEncryption.DpapiXmlDecryptor.Decrypt(XElement encryptedElement)
Microsoft.AspNet.Security.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptorConfigurationXmlReader.FromXml(XElement element)
Microsoft.AspNet.Security.DataProtection.KeyManagement.XmlKeyManager.ParseKeyElement(XElement keyElement)
Microsoft.AspNet.Security.DataProtection.KeyManagem 400 ent.XmlKeyManager.GetAllKeys()
Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingProvider.CreateCachedKeyRingInstanceUnderLock(DateTime utcNow, CachedKeyRing existingCachedKeyRing)
Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRing()
Microsoft.AspNet.Security.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(Byte[] unprotectedData)
400 
Microsoft.AspNet.Security.DataHandler.SecureDataFormat`1.Protect(TData data)
Microsoft.AspNet.Security.Cookies.CookieAuthenticationHandler.<ApplyResponseGrantAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwait 400 er.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Cookies.CookieAuthenticationHandler.ApplyResponseGrant()
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.ApplyResponseCore()
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.<ApplyResponse>b__55_0()
System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, B 400 oolean& initialized, Object& syncLock, Func`1 valueFactory)
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.ApplyResponse()
Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.OnSendingHeaderCallback(Object state)
Microsoft.Net.Http.Server.Response.NotifyOnSendingHeaders()
Microsoft.Net.Http.Server.Response.ComputeHeaders(Boolean endOfRequest)
400 
Microsoft.Net.Http.Server.ResponseStream.ComputeLeftToWrite(Boolean endOfRequest)
Microsoft.Net.Http.Server.ResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
Microsoft.AspNet.Mvc.DelegatingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
400 
System.IO.StreamWriter.Dispose(Boolean disposing)
System.IO.TextWriter.Dispose()
Microsoft.AspNet.Mvc.JsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterContext context)
Microsoft.AspNet.Mvc.OutputFormatter.<WriteAsync>d__12.MoveNext()
--- End of stack trace from previous location wh 400 ere exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.JsonResult.<ExecuteResultAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
400 
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.FilterActionInvoker.<InvokeResultAsync>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.FilterActionInvoker.<InvokeResultFilterAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
400 
Microsoft.AspNet.Mvc.FilterActionInvoker.<InvokeAllResultFiltersAsync>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwai 400 ter.ValidateEnd(Task task)
Microsoft.AspNet.Mvc.FilterActionInvoker.<InvokeResourceFilterAsync>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Mvc.FilterActionInvoker.<InvokeAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
400 
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.MvcRouteHandler.<InvokeActionAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.MvcRouteHandler.<RouteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime. 400 CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Routing.Template.TemplateRoute.<RouteAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)< 400 /h3> 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.Routing.AttributeRoute.<RouteAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
400 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
400 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Builder.RouterMiddleware.<Invoke>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaite 400 r.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exceptio 400 n was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
400 
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
400 
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
400 
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Securi 400 ty.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.<Invoke>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNon 400 Success(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__4.MoveNext()
No QueryString data.

Variable 400  Value 
Accept application/json, text/plain, */* 
Accept-Encoding gzip, deflate 
Accept-Language en-US,en;q=0.8 
Connection keep-alive 
400  Content-Length 387 
Content-Type application/json;charset=UTF-8 
Host localhost:8080 
Origin http://localhost:8080 
Referer http://localhost:8080/ 400  
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36 

0 

Assertion fails typeof(IAuthenticatedEncryptorConfigurationXmlReader).IsAssigna bleFrom(encryptorConfigurationParserType)

Using runtime 1.0.0-beta4-11143 clr x86
"Microsoft.AspNet.Security.DataProtection": "1.0.0-beta4-10918"

MVC app makes call to Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager
and receives
System.Security.Cryptography.CryptographicException: Assertion failed: TODO: typeof(IAuthenticatedEncryptorConfigurationXmlReader).Is
bleFrom(encryptorConfigurationParserType)

    "dependencies": {
        "EntityFramework.SqlServer": "7.0.0-beta4-*",
        "EntityFramework.Commands": "7.0.0-beta4-*",
        "Microsoft.AspNet.Mvc": "6.0.0-beta4-*",
        "Microsoft.AspNet.Diagnostics": "1.0.0-beta4-*",
        "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta4-*",
        "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta4-*",
        "Microsoft.AspNet.Security.Cookies": "1.0.0-beta4-*",
        "Microsoft.AspNet.Server.IIS": "1.0.0-beta4-*",
        "Microsoft.AspNet.Server.WebListener": "1.0.0-beta4-*",
        "Microsoft.AspNet.StaticFiles": "1.0.0-beta4-*",
        "Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4-*",
        "Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta4-*",
        "Microsoft.Framework.Logging": "1.0.0-beta4-*",
        "Microsoft.Framework.Logging.Console": "1.0.0-beta4-*",
        "Microsoft.AspNet.Security.DataProtection": "1.0.0-beta4-10918"
Active Version           Runtime Architecture Location                   Alias
------ -------           ------- ------------ --------                   -----
       1.0.0-beta3       clr     x64          C:\Users\Glenn\.k\runtimes
       1.0.0-beta3       clr     x86          C:\Users\Glenn\.k\runtimes
       1.0.0-beta3       coreclr x64          C:\Users\Glenn\.k\runtimes
       1.0.0-beta3       coreclr x86          C:\Users\Glenn\.k\runtimes
       1.0.0-beta4-11138 clr     x64          C:\Users\Glenn\.k\runtimes
       1.0.0-beta4-11138 coreclr x64          C:\Users\Glenn\.k\runtimes
       1.0.0-beta4-11143 clr     x64          C:\Users\Glenn\.k\runtimes
  *    1.0.0-beta4-11143 clr     x86          C:\Users\Glenn\.k\runtimes default
       1.0.0-beta4-11143 coreclr x64          C:\Users\Glenn\.k\runtimes
[INFORMATION:Microsoft.Net.Http.Server.WebListener] Listening on prefix: http://localhost:5000/
Started
[ERROR:Microsoft.AspNet.Server.WebListener.MessagePump] ProcessRequestAsync
System.Security.Cryptography.CryptographicException: Assertion failed: TODO: typeof(IAuthenticatedEncryptorConfigurationXmlReader).IsAssigna
bleFrom(encryptorConfigurationParserType)
   at Microsoft.AspNet.Cryptography.CryptoUtil.Fail(String message)
   at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager.ParseKeyElement(XElement keyElement)
   at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager.GetAllKeys()
   at Microsoft.AspNet.DataProtection.KeyManagement.KeyRingProvider.CreateCachedKeyRingInstanceUnderLock(DateTime utcNow, CachedKeyRing exis
tingCachedKeyRing)
   at Microsoft.AspNet.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRing()
   at Microsoft.AspNet.DataProtection.KeyManagement.KeyRingBasedDataProtector.Protect(Byte[] unprotectedData)
   at Microsoft.AspNet.Mvc.AntiForgeryTokenSerializer.Serialize(AntiForgeryToken token)
   at Microsoft.AspNet.Mvc.AntiForgeryTokenStore.SaveCookieToken(HttpContext httpContext, AntiForgeryToken token)
   at Microsoft.AspNet.Mvc.AntiForgeryWorker.SaveCookieTokenAndHeader(HttpContext httpContext, AntiForgeryToken newCookieToken)
   at Microsoft.AspNet.Mvc.AntiForgeryWorker.GetFormInputElement(HttpContext httpContext)
   at Microsoft.AspNet.Mvc.Rendering.DefaultHtmlGenerator.GenerateAntiForgery(ViewContext viewContext)
   at Microsoft.AspNet.Mvc.Rendering.HtmlHelper.AntiForgeryToken()
   at Asp.ASPV__Views_Account_Register_cshtml.d__13.MoveNext() in /Views/Account/Register.cshtml:line 11
--- 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 Microsoft.AspNet.Mvc.Razor.RazorView.d__17.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 Microsoft.AspNet.Mvc.Razor.RazorView.d__16.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 Microsoft.AspNet.Mvc.Razor.RazorView.d__15.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 Microsoft.AspNet.Mvc.ViewExecutor.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 Microsoft.AspNet.Mvc.ViewResult.d__16.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 Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__44.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 Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__42.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.ValidateEnd(Task task)
   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.d__32.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 Microsoft.AspNet.Mvc.MvcRouteHandler.d__3.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 Microsoft.AspNet.Mvc.MvcRouteHandler.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 Microsoft.AspNet.Routing.Template.TemplateRoute.d__25.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 Microsoft.AspNet.Routing.RouteCollection.d__10.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 Microsoft.AspNet.Builder.RouterMiddleware.d__5.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 Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.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 Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.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 Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.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 Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Security.Infrastructure.AuthenticationMiddleware`1.d__11.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 Microsoft.AspNet.Diagnostics.Entity.MigrationsEndPointMiddleware.d__5.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 Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.d__6.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 Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.d__4.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 Microsoft.AspNet.Server.WebListener.MessagePump.d__19.MoveNext()

Implement support for cloud DPAPI

Currently Antares and most other hosting providers store machine keys in plain text in applicationHost.config. We store our keys in %HOME%, but still in plain text. We can't use DPAPI because it's not meant for scale-our scenarios such as these. We need to convince Antares and other hosters to make a CryptProtectData-like API for our consumption. One possible implementation would be for us to read a DLL path from the system registry, then to look for a CryptProtectData-like export from that module.

Allow protecting keys to X.509 certs on Core CLR

EncryptedXml doesn't yet exist on Core CLR. When it's available, we need to remove all the ifdefs in the code base so that the code paths are available when targeting Core CLR.

Search the source code for the string "[[ISSUE60]]" to see all the places in code that are affected.

DataProtection broken on mono with recent change

https://github.com/aspnet/DataProtection/blob/dev/src/Microsoft.AspNet.Security.DataProtection/project.json#L4

This still seems to have net45 as framework. Running a web app on mono throws this below exception.

Ktests-MacBook-Air:HelloWorld ktest$ k kestrel
System.Exception: TODO: No service for type 'Microsoft.AspNet.Security.DataProtection.IDataProtectionProvider' has been registered.
  at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type serviceType) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.DependencyInjection.ServiceProvider.GetFallbackService (System.Type serviceType) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type serviceType) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.DependencyInjection.TypeActivator+ConstructorMatcher.CreateInstance (IServiceProvider _services) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.DependencyInjection.TypeActivator.CreateInstance (IServiceProvider services, System.Type instanceType, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Builder.ContainerExtensions+<>c__DisplayClass0.<UseMiddleware>b__1 (Microsoft.AspNet.Builder.RequestDelegate next) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Builder.Builder.Build () [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.HostingEngine.EnsureApplicationDelegate (Microsoft.AspNet.Hosting.HostingContext context) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.HostingEngine.Start (Microsoft.AspNet.Hosting.HostingContext context) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 

Exception when run WebApi application on Kestrel inside Docker container

Repro steps:

  1. Create ASP.NET 5 Preview WebApi project
  2. Open project.json file, add "Kestrel": "1.0.0-beta4-*" as a dependency
  3. Build a docker image from the packaged output, use the following Dockerfile:
    FROM Microsoft/aspnet:nightly
    ADD . /app
    WORKDIR /app/approot/src/[ProjectName]
    ENTRYPOINT ["dnx", ".", "Kestrel", "--server.urls", "http://localhost:80"]
  4. Start the container, you'll see "Started" output
  5. Open http://:80/ from browser
  6. The Kestrel server stopped with the following exception:

yanchenw@yc-dockerhost:~$ docker --tls -H :4243 run -it -p 80:80 webapplication5
Started
Can't find custom attr constructor image: /app/approot/packages/Microsoft.AspNet.Cryptography.Internal/1.0.0-beta4-11042/lib/dnx451/Microsoft.AspNet.Cryptography.Internal.dll mtoken: 0x0a000004

  • Assertion at class.c:5695, condition `!mono_loader_get_last_error ()' not met

Stacktrace:

at <0xffffffff>
at Microsoft.Framework.DependencyInjection.DataProtectionServices/<>c.b__0_0 (System.IServiceProvider) <0x000df>
at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetService (System.IServiceProvider) <0x0002d>
at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager..ctor (System.IServiceProvider) <0x0010f>
at Microsoft.Framework.DependencyInjection.DataProtectionServiceDescriptors/<>c.<IKeyManager_Default>b__8_0 (System.IServiceProvider) <0x0002b>
at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (System.IServiceProvider,System.Type) <0x0001e>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (System.IServiceProvider) <0x00027>
at Microsoft.AspNet.DataProtection.DataProtectionProvider.GetProviderFromServices (Microsoft.AspNet.DataProtection.DataProtectionOptions,System.IServiceProvider,bool) <0x0005f>
at Microsoft.Framework.DependencyInjection.DataProtectionServiceDescriptors/<>c.<IDataProtectionProvider_Default>b__5_0 (System.IServiceProvider) <0x0003f>
at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service/ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00069>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service/ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00069>
at Microsoft.Framework.DependencyInjection.ServiceProvider/TransientCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00028>
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service/ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00069>
at Microsoft.Framework.DependencyInjection.ServiceProvider/TransientCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00028>
at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (System.IServiceProvider,System.Type) <0x0001e>
at Microsoft.AspNet.Mvc.Razor.RazorPageActivator/<>c__DisplayClass7_0.b__1 (Microsoft.AspNet.Mvc.ViewContext) <0x00063>
at Microsoft.Framework.Internal.PropertyActivator1.Activate (object,TContext) <0x00028> at Microsoft.AspNet.Mvc.Razor.RazorPageActivator.Activate (Microsoft.AspNet.Mvc.Razor.IRazorPage,Microsoft.AspNet.Mvc.ViewContext) <0x0015f> at Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageCoreAsync>d__17.MoveNext () <0x0014c> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageCoreAsync>d__17> (Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageCoreAsync>d__17&) <0x0004f> at Microsoft.AspNet.Mvc.Razor.RazorView.RenderPageCoreAsync (Microsoft.AspNet.Mvc.Razor.IRazorPage,Microsoft.AspNet.Mvc.ViewContext) <0x001cb> at Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageAsync>d__16.MoveNext () <0x006ef> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<Microsoft.AspNet.Mvc.Razor.IBufferedTextWriter>.Start<Microsoft.AspNet.Mvc.Razor.RazorView/d__16> (Microsoft.AspNet.Mvc.Razor.RazorView/d__16&) <0x0004f>
at Microsoft.AspNet.Mvc.Razor.RazorView.RenderPageAsync (Microsoft.AspNet.Mvc.Razor.IRazorPage,Microsoft.AspNet.Mvc.ViewContext,bool) <0x00217>
at Microsoft.AspNet.Mvc.Razor.RazorView/d__15.MoveNext () <0x00103>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Razor.RazorView/d__15> (Microsoft.AspNet.Mvc.Razor.RazorView/d__15&) <0x0004f>
at Microsoft.AspNet.Mvc.Razor.RazorView.RenderAsync (Microsoft.AspNet.Mvc.ViewContext) <0x0018b>
at Microsoft.AspNet.Mvc.ViewExecutor/d__2.MoveNext () <0x00332>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.ViewExecutor/d__2> (Microsoft.AspNet.Mvc.ViewExecutor/d__2&) <0x0004f>
at Microsoft.AspNet.Mvc.ViewExecutor.ExecuteAsync (Microsoft.AspNet.Mvc.Rendering.IView,Microsoft.AspNet.Mvc.ActionContext,Microsoft.AspNet.Mvc.ViewDataDictionary,Microsoft.AspNet.Mvc.ITempDataDictionary,string) <0x0027b>
at Microsoft.AspNet.Mvc.ViewResult/d__20.MoveNext () <0x002ff>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.ViewResult/d__20> (Microsoft.AspNet.Mvc.ViewResult/d__20&) <0x0004f>
at Microsoft.AspNet.Mvc.ViewResult.ExecuteResultAsync (Microsoft.AspNet.Mvc.ActionContext) <0x0018b>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__44.MoveNext () <0x000e2>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__44> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__44&) <0x00067>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeResultAsync () <0x0015f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__43.MoveNext () <0x00ad7>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<Microsoft.AspNet.Mvc.ResultExecutedContext>.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeResultFilterAsync>d__43> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeResultFilterAsync>d__43&) <0x0004f> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeResultFilterAsync () <0x0014f> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeAllResultFiltersAsync>d__42.MoveNext () <0x00133> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeAllResultFiltersAsync>d__42> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeAllResultFiltersAsync>d__42&) <0x0004f> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAllResultFiltersAsync (Microsoft.AspNet.Mvc.IActionResult) <0x00187> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeResourceFilterAsync>d__37.MoveNext () <0x01323> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<Microsoft.AspNet.Mvc.ResourceExecutedContext>.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__37> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__37&) <0x0004f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeResourceFilterAsync () <0x0014f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__36.MoveNext () <0x002df>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__36> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__36&) <0x00067>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAllResourceFiltersAsync () <0x0015f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__32.MoveNext () <0x00523>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__32> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__32&) <0x00067>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAsync () <0x0015f>
at Microsoft.AspNet.Mvc.MvcRouteHandler/d__3.MoveNext () <0x00201>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.MvcRouteHandler/d__3> (Microsoft.AspNet.Mvc.MvcRouteHandler/d__3&) <0x0004f>
at Microsoft.AspNet.Mvc.MvcRouteHandler.InvokeActionAsync (Microsoft.AspNet.Routing.RouteContext,Microsoft.AspNet.Mvc.ActionDescriptor) <0x001cb>
at Microsoft.AspNet.Mvc.MvcRouteHandler/d__2.MoveNext () <0x00527>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.MvcRouteHandler/d__2> (Microsoft.AspNet.Mvc.MvcRouteHandler/d__2&) <0x0004f>
at Microsoft.AspNet.Mvc.MvcRouteHandler.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0018b>
at Microsoft.AspNet.Routing.Template.TemplateRoute/d__25.MoveNext () <0x0062c>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Routing.Template.TemplateRoute/d__25> (Microsoft.AspNet.Routing.Template.TemplateRoute/d__25&) <0x0004f>
at Microsoft.AspNet.Routing.Template.TemplateRoute.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0019f>
at Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute/d__10.MoveNext () <0x00243>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute/d__10> (Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute/d__10&) <0x0004f>
at Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0019f>
at Microsoft.AspNet.Mvc.Routing.AttributeRoute.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x00023>
at Microsoft.AspNet.Routing.RouteCollection/d__10.MoveNext () <0x00281>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Routing.RouteCollection/d__10> (Microsoft.AspNet.Routing.RouteCollection/d__10&) <0x0004f>
at Microsoft.AspNet.Routing.RouteCollection.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0018b>
at Microsoft.AspNet.Builder.RouterMiddleware/d__5.MoveNext () <0x00254>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Builder.RouterMiddleware/d__5> (Microsoft.AspNet.Builder.RouterMiddleware/d__5&) <0x0004f>
at Microsoft.AspNet.Builder.RouterMiddleware.Invoke (Microsoft.AspNet.Http.HttpContext) <0x0018b>
at Microsoft.AspNet.StaticFiles.StaticFileMiddleware.Invoke (Microsoft.AspNet.Http.HttpContext) <0x002b4>
at Microsoft.AspNet.Hosting.Internal.PipelineInstance.Invoke (Microsoft.AspNet.FeatureModel.IFeatureCollection) <0x0005c>
at Kestrel.ServerFactory/<>c__DisplayClass3_0/<b__0>d.MoveNext () <0x00084>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Kestrel.ServerFactory/<>c__DisplayClass3_0/<b__0>d> (Kestrel.ServerFactory/<>c__DisplayClass3_0/<b__0>d&) <0x0004f>
at Kestrel.ServerFactory/<>c__DisplayClass3_0.b__0 (Microsoft.AspNet.Server.Kestrel.Http.Frame) <0x00187>
at Microsoft.AspNet.Server.Kestrel.Http.Frame/d__66.MoveNext () <0x00090>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Server.Kestrel.Http.Frame/d__66> (Microsoft.AspNet.Server.Kestrel.Http.Frame/d__66&) <0x0004f>
at Microsoft.AspNet.Server.Kestrel.Http.Frame.ExecuteAsync () <0x00147>
at System.Threading.Tasks.TaskActionInvoker/FuncInvoke`1.Invoke (System.Threading.Tasks.Task,object,System.Threading.Tasks.Task) <0x00043>
at System.Threading.Tasks.Task.InnerInvoke () <0x0006c>
at System.Threading.Tasks.Task.m__1 (object) <0x0003f>
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00060>
at System.Threading.Tasks.Task.ThreadStart () <0x0032b>
at System.Threading.Tasks.Task.Execute () <0x0000f>
at System.Threading.Tasks.TpScheduler.TaskExecuterCallback (object) <0x00047>
at (wrapper runtime-invoke) .runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono() [0x4accac]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0xf0a0) [0x7faee5f6d0a0]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7faee5c05165]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7faee5c083e0]
    mono() [0x6232f9]
    mono() [0x623507]
    mono() [0x623656]
    mono() [0x5182d7]
    mono() [0x51808d]
    mono(mono_field_from_token+0x153) [0x53e243]
    mono() [0x456d19]
    mono() [0x42c761]
    mono() [0x42e2bd]
    mono() [0x42ec4b]
    mono() [0x4af15e]
    [0x40a44166]

Debug info from gdb:

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries

used by your application.

  • Assertion at class.c:5695, condition `!mono_loader_get_last_error ()' not met

Stack overflow: IP: 0x7faee5c0833c, fault addr: (nil)
Stacktrace:
at <0xffffffff>
at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
<...>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetService (System.IServiceProvider) <0x0002d>
at Microsoft.AspNet.DataProtection.KeyManagement.XmlKeyManager..ctor (System.IServiceProvider) <0x0010f>
at Microsoft.Framework.DependencyInjection.DataProtectionServiceDescriptors/<>c.<IKeyManager_Default>b__8_0 (System.IServiceProvider) <0x0002b>
at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (System.IServiceProvider,System.Type) <0x0001e>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (System.IServiceProvider) <0x00027>
at Microsoft.AspNet.DataProtection.DataProtectionProvider.GetProviderFromServices (Microsoft.AspNet.DataProtection.DataProtectionOptions,System.IServiceProvider,bool) <0x0005f>
at Microsoft.Framework.DependencyInjection.DataProtectionServiceDescriptors/<>c.<IDataProtectionProvider_Default>b__5_0 (System.IServiceProvider) <0x0003f>
at Microsoft.Framework.DependencyInjection.ServiceLookup.FactoryService.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0002d>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service/ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00069>
at Microsoft.Framework.DependencyInjection.ServiceProvider/ScopedCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00081>
at Microsoft.Framework.DependencyInjection.ServiceProvider/SingletonCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x0001f>
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service/ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00069>
at Microsoft.Framework.DependencyInjection.ServiceProvider/TransientCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00028>
at Microsoft.Framework.DependencyInjection.ServiceLookup.Service/ConstructorCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00069>
at Microsoft.Framework.DependencyInjection.ServiceProvider/TransientCallSite.Invoke (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00028>
at Microsoft.Framework.DependencyInjection.ServiceProvider/<>c__DisplayClass8_0.b__0 (Microsoft.Framework.DependencyInjection.ServiceProvider) <0x00123>
at Microsoft.Framework.DependencyInjection.ServiceProvider.GetService (System.Type) <0x000bd>
at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (System.IServiceProvider,System.Type) <0x0001e>
at Microsoft.AspNet.Mvc.Razor.RazorPageActivator/<>c__DisplayClass7_0.b__1 (Microsoft.AspNet.Mvc.ViewContext) <0x00063>
at Microsoft.Framework.Internal.PropertyActivator1.Activate (object,TContext) <0x00028> at Microsoft.AspNet.Mvc.Razor.RazorPageActivator.Activate (Microsoft.AspNet.Mvc.Razor.IRazorPage,Microsoft.AspNet.Mvc.ViewContext) <0x0015f> at Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageCoreAsync>d__17.MoveNext () <0x0014c> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageCoreAsync>d__17> (Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageCoreAsync>d__17&) <0x0004f> at Microsoft.AspNet.Mvc.Razor.RazorView.RenderPageCoreAsync (Microsoft.AspNet.Mvc.Razor.IRazorPage,Microsoft.AspNet.Mvc.ViewContext) <0x001cb> at Microsoft.AspNet.Mvc.Razor.RazorView/<RenderPageAsync>d__16.MoveNext () <0x006ef> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<Microsoft.AspNet.Mvc.Razor.IBufferedTextWriter>.Start<Microsoft.AspNet.Mvc.Razor.RazorView/d__16> (Microsoft.AspNet.Mvc.Razor.RazorView/d__16&) <0x0004f>
at Microsoft.AspNet.Mvc.Razor.RazorView.RenderPageAsync (Microsoft.AspNet.Mvc.Razor.IRazorPage,Microsoft.AspNet.Mvc.ViewContext,bool) <0x00217>
at Microsoft.AspNet.Mvc.Razor.RazorView/d__15.MoveNext () <0x00103>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Razor.RazorView/d__15> (Microsoft.AspNet.Mvc.Razor.RazorView/d__15&) <0x0004f>
at Microsoft.AspNet.Mvc.Razor.RazorView.RenderAsync (Microsoft.AspNet.Mvc.ViewContext) <0x0018b>
at Microsoft.AspNet.Mvc.ViewExecutor/d__2.MoveNext () <0x00332>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.ViewExecutor/d__2> (Microsoft.AspNet.Mvc.ViewExecutor/d__2&) <0x0004f>
at Microsoft.AspNet.Mvc.ViewExecutor.ExecuteAsync (Microsoft.AspNet.Mvc.Rendering.IView,Microsoft.AspNet.Mvc.ActionContext,Microsoft.AspNet.Mvc.ViewDataDictionary,Microsoft.AspNet.Mvc.ITempDataDictionary,string) <0x0027b>
at Microsoft.AspNet.Mvc.ViewResult/d__20.MoveNext () <0x002ff>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.ViewResult/d__20> (Microsoft.AspNet.Mvc.ViewResult/d__20&) <0x0004f>
at Microsoft.AspNet.Mvc.ViewResult.ExecuteResultAsync (Microsoft.AspNet.Mvc.ActionContext) <0x0018b>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__44.MoveNext () <0x000e2>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__44> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__44&) <0x00067>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeResultAsync () <0x0015f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__43.MoveNext () <0x00ad7>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<Microsoft.AspNet.Mvc.ResultExecutedContext>.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeResultFilterAsync>d__43> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeResultFilterAsync>d__43&) <0x0004f> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeResultFilterAsync () <0x0014f> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeAllResultFiltersAsync>d__42.MoveNext () <0x00133> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeAllResultFiltersAsync>d__42> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeAllResultFiltersAsync>d__42&) <0x0004f> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAllResultFiltersAsync (Microsoft.AspNet.Mvc.IActionResult) <0x00187> at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/<InvokeResourceFilterAsync>d__37.MoveNext () <0x01323> at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<Microsoft.AspNet.Mvc.ResourceExecutedContext>.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__37> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__37&) <0x0004f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeResourceFilterAsync () <0x0014f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__36.MoveNext () <0x002df>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__36> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__36&) <0x00067>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAllResourceFiltersAsync () <0x0015f>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__32.MoveNext () <0x00523>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__32> (Microsoft.AspNet.Mvc.Core.FilterActionInvoker/d__32&) <0x00067>
at Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAsync () <0x0015f>
at Microsoft.AspNet.Mvc.MvcRouteHandler/d__3.MoveNext () <0x00201>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.MvcRouteHandler/d__3> (Microsoft.AspNet.Mvc.MvcRouteHandler/d__3&) <0x0004f>
at Microsoft.AspNet.Mvc.MvcRouteHandler.InvokeActionAsync (Microsoft.AspNet.Routing.RouteContext,Microsoft.AspNet.Mvc.ActionDescriptor) <0x001cb>
at Microsoft.AspNet.Mvc.MvcRouteHandler/d__2.MoveNext () <0x00527>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.MvcRouteHandler/d__2> (Microsoft.AspNet.Mvc.MvcRouteHandler/d__2&) <0x0004f>
at Microsoft.AspNet.Mvc.MvcRouteHandler.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0018b>
at Microsoft.AspNet.Routing.Template.TemplateRoute/d__25.MoveNext () <0x0062c>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Routing.Template.TemplateRoute/d__25> (Microsoft.AspNet.Routing.Template.TemplateRoute/d__25&) <0x0004f>
at Microsoft.AspNet.Routing.Template.TemplateRoute.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0019f>
at Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute/d__10.MoveNext () <0x00243>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute/d__10> (Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute/d__10&) <0x0004f>
at Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0019f>
at Microsoft.AspNet.Mvc.Routing.AttributeRoute.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x00023>
at Microsoft.AspNet.Routing.RouteCollection/d__10.MoveNext () <0x00281>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Routing.RouteCollection/d__10> (Microsoft.AspNet.Routing.RouteCollection/d__10&) <0x0004f>
at Microsoft.AspNet.Routing.RouteCollection.RouteAsync (Microsoft.AspNet.Routing.RouteContext) <0x0018b>
at Microsoft.AspNet.Builder.RouterMiddleware/d__5.MoveNext () <0x00254>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Builder.RouterMiddleware/d__5> (Microsoft.AspNet.Builder.RouterMiddleware/d__5&) <0x0004f>
at Microsoft.AspNet.Builder.RouterMiddleware.Invoke (Microsoft.AspNet.Http.HttpContext) <0x0018b>
at Microsoft.AspNet.StaticFiles.StaticFileMiddleware.Invoke (Microsoft.AspNet.Http.HttpContext) <0x002b4>
at Microsoft.AspNet.Hosting.Internal.PipelineInstance.Invoke (Microsoft.AspNet.FeatureModel.IFeatureCollection) <0x0005c>
at Kestrel.ServerFactory/<>c__DisplayClass3_0/<b__0>d.MoveNext () <0x00084>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Kestrel.ServerFactory/<>c__DisplayClass3_0/<b__0>d> (Kestrel.ServerFactory/<>c__DisplayClass3_0/<b__0>d&) <0x0004f>
at Kestrel.ServerFactory/<>c__DisplayClass3_0.b__0 (Microsoft.AspNet.Server.Kestrel.Http.Frame) <0x00187>
at Microsoft.AspNet.Server.Kestrel.Http.Frame/d__66.MoveNext () <0x00090>
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.AspNet.Server.Kestrel.Http.Frame/d__66> (Microsoft.AspNet.Server.Kestrel.Http.Frame/d__66&) <0x0004f>
at Microsoft.AspNet.Server.Kestrel.Http.Frame.ExecuteAsync () <0x00147>
at System.Threading.Tasks.TaskActionInvoker/FuncInvoke`1.Invoke (System.Threading.Tasks.Task,object,System.Threading.Tasks.Task) <0x00043>
at System.Threading.Tasks.Task.InnerInvoke () <0x0006c>
at System.Threading.Tasks.Task.m__1 (object) <0x0003f>
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x00060>
at System.Threading.Tasks.Task.ThreadStart () <0x0032b>
at System.Threading.Tasks.Task.Execute () <0x0000f>
at System.Threading.Tasks.TpScheduler.TaskExecuterCallback (object) <0x00047>
at (wrapper runtime-invoke) .runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.