Recently I upgrade my .net 4.8 web project to .net 6. Post upgrade I am getting below error from Global.asax.cs page
public class MvcApplication : HttpApplication
CS0246 The type or namespace name 'HttpApplication' could not be found (are you missing a using directive or an assembly reference?) ~project path\Global.asax.cs
I have tried few possible way to fix this issue, but no luck
It seems like issue is with System.Web namespace in .Net 6. I am getting maximum error because of System.Web namespace
What I can see in .net 6.0 only one class is present in System.Web that is “HttpUtility”. Refer this https://learn.microsoft.com/en-us/dotnet/api/system.web?view=net-6.0
But for System.Web in .Net Framework 4.8 many class was there. Refer this. https://learn.microsoft.com/en-us/dotnet/api/system.web?view=netframework-4.8
Can anyone please help me to understand the issue or any possible way or namespace we can use to fix this