Aflred
Aflred

Reputation: 4593

Could not load type 'Rotativa.ActionAsPdf'

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.

Upvotes: 0

Views: 711

Answers (1)

user1666620
user1666620

Reputation: 4808

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

Upvotes: 0

Related Questions