System.Web.HttpContext.Session is null with SystemWebAdapters v1.3.0 on .NET 8 yarp incremental upgrade

114 views Asked by At

I tried an example but seems .net8 and yarp 1.3 is not working together or there is a bug in VS2022. I always get the session values null in ASP.NET Core app. But downgrading to all packages of system web adaptors to 1.2 works seamlessly.

Please advise what the issue could be. Please find the repos links with ver 1.3

https://github.com/erpardeepkaushik/TestWebCore

https://github.com/erpardeepkaushik/TestWeb

2

There are 2 answers

0
Joan Android On

The issue you're encountering with System.Web.HttpContext.Session being null with SystemWebAdapters v1.3.0 on .NET 8 might be due to a compatibility or configuration problem. Ensure you've correctly configured sessions and dependencies for .NET 8, as the problem might stem from the upgrade or settings within your codebase.

0
Code47 On

i was having the same issue so what i did is simply downgraded to framworkservices from 1.3 to 1.1.0 also downgrade coreservices as well then i got session value