ilich / MvcReportViewer

ASP.NET MVC Html Helpers for ReportViewer Control.
MIT License
282 stars 131 forks source link

Get troubles on display when changed Website Server #208

Closed Nnayl closed 7 years ago

Nnayl commented 7 years ago

Hi,

I want to migrate my website from a Windows server 2012 with IIS 8.0 to a Windows server 2016 with 10.0 and I encounter some trouble with the display of my reports. (Report host by a reporting server on other machine)

Display look like this when website hosted by my personal computer IIS (windows 7 with IIS 7.0) or WS2012 : good display

Display look like this when website hosted by WS2016 : bad display

I don’t understand what’s append !

Code :

@{
        var settings = new ControlSettings
        {
            ShowParameterPrompts = true,
            ShowFindControls = false,
            KeepSessionAlive = false,
            AsyncRendering = false,
            SizeToReportContent = false,
            ShowPrintButton = false,
            ShowExportControls = false

    };
}

@Html.MvcReportViewerFluent(
             "/MyReport").Username("myUser")).Password(
             ("MyPassw")).Attributes(
             new { Height = 1500, Width = "100%", style = "border: none" }
        ).ControlSettings(settings)

MVC Website compiled with .net 4.5 .net 4.5 framework installed to all servers Application pool CLN .net v4.030319 pipeline Classic on all IIS

Do you have some ideas ?

Thanks for your replies !

Nnayl commented 7 years ago

Hi, I fixed the problem !

for a reason i not understanding, Mircrosoft.ReportViewer.* DLL in my BIN folder didn’t be use. IIS use GAC DLL with version 13.0.1601.5, however my BIN DLL are version 13.0.1700.305.

I updated manually DLL in GAC and it work fine

ilich commented 7 years ago

Thank you for the update.