ilich / MvcReportViewer

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

Blank iframe in local azure-report #182

Closed dislappss closed 8 years ago

dislappss commented 8 years ago

Hello, I have a problem. My local report appears in a normal way in my computer, but it stays blank when it is uploaded in the azure-host.

Thank you for help.


.cshtml: @{ var settings = new ControlSettings { UseCurrentAppDomainPermissionSet = true, ShowParameterPrompts = false, ShowFindControls = true, ShowToolBar = true, AsyncRendering = false, ZoomMode = ZoomMode.PageWidth, SizeToReportContent = false };
}

@Html.MvcReportViewerFluent("App_Data/Reports/articles.rdlc").LocalDataSource("data", Model.data).LocalDataSource("labels", Model.labels).ProcessingMode(ProcessingMode.Local).Attributes(new { Height = 900, Width = "100%", style = "border: none" }).ControlSettings(settings)

Web.config: .....

...... .....
icozma commented 8 years ago

I had the same issue: blank report, on a local instance of SSRS; the issue was that the application user did not had permissions to browse the report on SSRS.

ilich commented 8 years ago

Thank you, @icozma! It seems to be a problem with disk permissions. I have never tried to run this on Azure, but I experienced the same problem on a virtual server.

mickeysuda commented 6 years ago

I have same issue, just try to use the "\" in the path instead of "/", so instead of "App_Data/Reports/articles.rdlc", it should be "App_Data\Reports\articles.rdlc"