0

Could not load type 'Rotativa.ActionAsPdf' from assembly 'Rotativa, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type 'Rotativa.ActionAsPdf' from assembly 'Rotativa, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

I started a new mvc 5 project, added rotativa via nuget using the following command:

Install-Package Rotativa

I am very depressed can somebody please help me.

1

1 Answer 1

0

DLL hell is a pain.

Check that the DLLs referenced are present in the correct location. Check that the versions of the DLLs are the same as the ones you have added to your project. Check that the dependencies the DLLs are all present. Check that the references in your project are correct. think Rotativa also needs to be loaded into your project as well.

Check the below link:

C#: Could not load types from assembly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.