How to resolve the error related to System.Web.Mvc dll version

So first we will understand why we are facing this issue. The simple answer is there is a mismatch in the dll version. So lets see where we found this mismatch.

  1. Go to Sitecore instance (C:\inetpub\wwwroot\LearningSitecore\Website\)
  2. Locate System.Web.Mvc.dll in bin folder and go to it’s properties.
    VS1
  3. In properties under Details tab check the version of the dll file.
  4. Now go to Sitecore instance (C:\inetpub\wwwroot\LearningSitecore\Website\), Open Web.Config file and Search for “System.Web.Mvc”.
    VS3
  5. The Version will be different in this line change it to the version we found in the properties i.e. 5.2.3
  6. Now again find “System.Web.Mvc”
    VS4
  7. Update the version to 5.2.3.0 in oldVersion and newVersion attributes as well.
  8. Now save the Web.config file and reload the website.
  9. This will load the front end as well as backend site.
  10. In case you are getting similar issue for other dlls then you can use the same approach.

This solves our show stopper issue. From next blog we will deep dive in the basics of Sitecore such as templates, renderings, items, etc. Stay tuned.

Thank you.. Keep Learning.. Keep Sitecoring.. 🙂

One thought on “How to resolve the error related to System.Web.Mvc dll version

  1. Pingback: Integrating Visual Studio solution and Sitecore instance | Sitecore Dairies

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s