When I run the example I get this in the browser:
Unable to resolve service for type 'Microsoft.AspNetCore.DataProtection.IDataProtecti onProvider' while attempting to activate 'Microsoft.AspNetCore.Session.SessionMiddleware'.
I found the fix here:
https://forums.asp.net/t/2097262.asp...on+not+working
1) Add in your project.json as below
"Microsoft.AspNetCore.Session": "1.0.0",
"Microsoft.Extensions.Caching.Memory": "1.0.0",
2)In your ConfigureServices method of Startup.cs
services.AddMemoryCache();
services.AddSession()
-----------------------------------
Also, after I get to "Configure ASP.Net" on p 1249, and add the appsettings.json and the StartUp constructor, I start getting this error:
"Unable to resolve service for type 'Microsoft.Extensions.Caching.Distributed.IDistrib utedCache' while attempting to activate 'Microsoft.AspNetCore.Session.DistributedSessionSt ore'."
I found a resolution at:
https://docs.microsoft.com/en-us/asp...tals/app-state
services.AddMemoryCache();
from step 2 above
with
services.AddDistributedMemoryCache();
I'll have to read more about State now;.
Looks like a lot of changes:
No more Application replaced with Cache, and so on.
Just replace: