Sri Ram

Sri Ram

  • 1.2k
  • 173
  • 99.8k

Do we need to install MVC on Production server?

Apr 17 2018 8:45 PM
I'm integrating MVC areas into an existing web forms project targeted with 4.5.1 framework. I have integrated MVC and rotativa component to generate a pdf document based on a view.
 
This application is successfully tested in two environments and finally deployed to a NEW production server (OS : Win Server 2012 R2). Here, application is throwing below said error and NOT generating the pdf as expected.
 
Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
 
My app's web.config has the bindingredirect which is telling to refer the new MVC dll version 5.2.3.0 (available in BIN). I really don't understand why the app is still referring MVC version 3.0.0.1 which i haven't referred.
 
Is the rotativa needs this version dll? My app has only one controller with two action methods and each of them supposed to generate pdf for a different test case.
 
This prod server doesn't have MVC installed and any existing MVC applications. My app is the first MVC based one to be installed on this new server.
 
As am new to MVC, can you please suggest any specific MVC installation to be done at server level or GAC level?
 
Experts please guide me as this is really urgent thing to fix.  

Answers (1)