Asp.Net Core 3.1 MVC 5 Error ViewBag does not Exist in the Current Context


Question: How do you resolve  an Asp.Net Core 3.1 MVC 5 Error "ViewBag does not Exist in the Current Context"


Login to See the Rest of the Answer

Answer:
Make sure that you are only using Microsoft.AspNetCore.MVC and not System.Web.Mvc. This error shows up if you are upgrading an Asp.Net Application from .Net 4.7 to .Net Core.

 

Asp.Net Core 3.1 Error ViewBag does not exist in the current context







For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email Address[email protected]