lkosson / reportviewercore

Recompilation of Microsoft.ReportViewer for .NET Core 3.1+
427 stars 123 forks source link

Blazor Server app gets error when deployed #106

Closed JoeCSolomon closed 2 years ago

JoeCSolomon commented 2 years ago

I am developing a Blazor Server app and it generates reports just fine when running in VS 2022. However, I get an error when I try the same code running in IIS on a Windows server. The error I get is;

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.NETCore, Version=15.1.17.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

I checked the directory and Microsoft.ReportViewer.NETCore, Version=15.1.17.0 is there along with Common, DataVisulization, and ProcessingObjectModel. Can you offer any suggestions for or solutions to this error?

Joe

lkosson commented 2 years ago

No idea. I guess the file isn't where it's supposed to be or perhaps it isn't referenced in APP.deps.json file.

JoeCSolomon commented 2 years ago

Yes you did have an idea. It was missing a reference in the dep file. Thank you!!!