I'm using Rotativa for converting html to pdf on my asp.net mvc website. It works fine locally, but after I deploy on the server, it just returns a text saying "Rotativa.ViewAsPdf", that is the method name I'm calling in my C# code. There's no exception/errors, nothing in the logs and event viewer.
I have given full permissions to wkhtmltodf.exe, the Rotativa folder too. There's also Rotativa.dll present inside the bin directory. Also, I have installed MSCVP120.dll on the server, but I'm not able to figure out what could be the problem. Please help.
Found the solution! :) Thanks https://stackoverflow.com/a/21690696/1542798
I'm using System.Web.Mvc 5.2.3, so I had to change the binding redirect in my web.config form 5.0.0 to 5.2.3
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.2.3.0"/>
</dependentAssembly>