Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.Net Core Session Enablement

$
0
0

Hi,

I am trying to develop an application that can use session management, I had included following two dependencies in project.json as per core documentation:

"Microsoft.AspNetCore.Session": "1.0.0","Microsoft.Extensions.Caching.Memory": "1.0.0",

But now when i compile the solution there is an error in program.cs at UseContentRoot function that 

Severity Code Description Project File Line Suppression State
Error CS0121 The call is ambiguous between the following methods or properties: 'Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions.UseContentRoot(Microsoft.AspNetCore.Hosting.IWebHostBuilder, string)' and 'Microsoft.AspNetCore.Hosting.HostingAbstractionsWebHostBuilderExtensions.UseContentRoot(Microsoft.AspNetCore.Hosting.IWebHostBuilder, string)' WebApplication1..NETCoreApp,Version=v1.0 C:\Testing\WebApplication1\src\WebApplication1\Program.cs 16 Active

Sample project is uploaded at dropbox https://www.dropbox.com/s/1l5clva6c9gdnwe/WebApplication1.rar?dl=0

Please help me get out of this issue !


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>