This project has moved. For the latest updates, please go here.

Possible issue with your zip deployment

Dec 30, 2014 at 5:02 PM
I ran into this before as well but with the recent update it happened again and reminded me about the issue.
If I use the Zip file download and then run reportgenerator I get the following error:
error MSB4018: System.IO.FileLoadException: Could not load file or assembly 'file:///D:\BuildTools\ReportGenerator\bin\ICSharpCode.NRefactory.CSharp.dll' or one of its dependencies.

However if I install using Nuget and then copy the files to my installed location it works fine.

Anyway, I haven't spent any time trying to figure it out and just figured I'd pass it on.
Coordinator
Dec 30, 2014 at 6:42 PM
Edited Dec 30, 2014 at 8:17 PM
Very strange.
The file seems to be present in the ZIP file.
It work without problems on my machine.

Could you try to replace the file with the one from the Nuget package? Does it work now?

Another possible issue might be, that you did not unblock the ZIP file before extracting it.
Marked as answer by js83 on 12/30/2014 at 1:16 PM
Dec 30, 2014 at 8:16 PM
Yep that was the issue. Thanks.
Coordinator
Jan 6, 2015 at 9:16 AM
I have documented this issue in the FAQ:
https://reportgenerator.codeplex.com/wikipage?title=FAQ#FileLoadException

ReportGenerator 2.0.4 will unlock the files automatically.