I have a fresh instance with v10.1.2
, which has System.Web.Mvc 5.2.4
In my Visual Studio solution, I have projects with .Net 4.8
which has System.Web.Mvc 5.2.9
.
When I publish the code into the instance, it is only the custom dlls and pdb files. They do not include System.Web.Mvc
.
But still, the CMS doesn't load and throws an error saying, cannot find the System.Web.Mvc
version.
To handle this, I have downgraded Microsoft.AspNet.Mvc to 5.2.4
.
The issue is now resolved.
But for each project and all the new projects, this step needs to be done.
If I include System.Web.Mvc (5.2.9)
in publish, then the web.config
of the instance for all environments (DEV,UAT, PRD
) have to be updated.
What is the better way to handle this?