c# - Could not load file or assembly 'RazorEngine' with Exporter class from GitHub -


i'm trying use tool found here: https://github.com/ignatandrei/exporter

this should take ienumerable , generate byte[] value of excel, word, or pdf. using mvc 5.2.3.0

i’m trying use these classes:

public abstract class reportbase : ireport {     virtual public string reportname { get; set; }     virtual public icollection<ireportsection> reportsections { get; set; } }  public abstract class reportsectionbase : ireportsection {     public string reportsectionname { get; set; }     public icollection reportitems { get; set; } } 

and in controller trying this:

public virtual actionresult processreport() {     if (session["reportdata"] != null)     {         var report = session["reportdata"] reportbase;          // error here         export<reportbase> export = new exportexcel2007<reportbase>();          var data = export.exportresult(new list<reportbase>() {report});         return new downloadfileactionresult(data, "test.xlsx");     }     return null; } 

here error get:

server error in '/' application.

could not load file or assembly 'razorengine, version=3.7.6.0, culture=neutral, publickeytoken=9ee697374c7e744a' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040) description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.

exception details: system.io.fileloadexception: not load file or assembly 'razorengine, version=3.7.6.0, culture=neutral, publickeytoken=9ee697374c7e744a' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)

source error:

line 3232: var report = session["reportdata"] reportbase;
line 3233:
line 3234: export export = new exportexcel2007();
line 3235:
line 3236: var data = export.exportresult(new list() {report});

source file:
c:\projects\bitlocker\publicationsystem\publicationsystem\controllers\projectcontroller.cs line: 3234

i'm having rough day, not feeling well, , can't seem things work.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -