sql server - SSRS MVC - Report Rendering Blank Page -


i have implemented reportviewer in mvc. problem i'm having renders blank page. toolbar there, , loading icon flashes second, blank page returned.

i've logged ssrs report manager , ran through there , works fine. i'm @ loss of try next.

reportsview(aspx)

<%@ page language="c#" inherits="system.web.mvc.viewpage<dynamic>" %>  <%@ register assembly="microsoft.reportviewer.webforms, version=10.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"     namespace="microsoft.reporting.webforms" tagprefix="rsweb" %>  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">  <html> <head id="head1" runat="server">     <title>aspxview</title> </head> <body>     <div>          <form id="form1" runat="server">         <asp:scriptmanager id="scriptmanager1" runat="server">                   </asp:scriptmanager>         <rsweb:reportviewer id="reportviewer1" runat="server" font-names="verdana"              font-size="8pt" height="600px" interactivedeviceinfos="(collection)"              processingmode="remote" waitmessagefont-names="verdana"              waitmessagefont-size="14pt" width="100%">             <serverreport reportserverurl="http://localhost/reportserver" reportpath="/reports/requisition summary report" />         </rsweb:reportviewer>         </form>             </div> </body> </html> 

controller

using system.web.mvc;  namespace sp_mvc.controllers {     public class reportscontroller : controller     {         //         // get: /reports/          public actionresult index()         {             return view();         }          public actionresult reportsview()         {             return view();         }          public actionresult reportscontrol()         {             return view();         }     } } 

web config

<?xml version="1.0" encoding="utf-8"?> <!--   more information on how configure asp.net application, please visit   http://go.microsoft.com/fwlink/?linkid=169433   --> <configuration>   <configsections>   </configsections>   <connectionstrings>     <add name="sp_mvc.properties.settings.dbconnectionstring"       connectionstring="data source=localhost;initial catalog=db;user id=dbclient;password=dbpassword;"       providername="system.data.sqlclient" />   </connectionstrings>   <appsettings>     <add key="webpages:version" value="2.0.0.0" />     <add key="webpages:enabled" value="false" />     <add key="preserveloginurl" value="true" />     <add key="clientvalidationenabled" value="true" />     <add key="unobtrusivejavascriptenabled" value="true" />   </appsettings>   <system.web>     <httphandlers>       <add verb="*" path="reserved.reportviewerwebcontrol.axd" type = "microsoft.reporting.webforms.httphandler, microsoft.reportviewer.webforms, version=10.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a" />     </httphandlers>     <compilation debug="true" targetframework="4.0" />     <pages>       <namespaces>         <add namespace="system.web.helpers" />         <add namespace="system.web.mvc" />         <add namespace="system.web.mvc.ajax" />         <add namespace="system.web.mvc.html" />         <add namespace="system.web.routing" />         <add namespace="system.web.webpages" />         <add namespace="kendo.mvc.ui" />       </namespaces>     </pages>   </system.web>   <system.webserver>     <validation validateintegratedmodeconfiguration="false" />     <modules runallmanagedmodulesforallrequests="true" />     <handlers>       <add name="reportviewerwebcontrolhandler" precondition="integratedmode" verb="*" path="reserved.reportviewerwebcontrol.axd" type="microsoft.reporting.webforms.httphandler, microsoft.reportviewer.webforms, version=10.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a" />       <remove name="extensionlessurlhandler-isapi-4.0_32bit" />       <remove name="extensionlessurlhandler-isapi-4.0_64bit" />       <remove name="extensionlessurlhandler-integrated-4.0" />       <add name="extensionlessurlhandler-isapi-4.0_32bit" path="*." verb="get,head,post,debug,put,delete,patch,options" modules="isapimodule" scriptprocessor="%windir%\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll" precondition="classicmode,runtimeversionv4.0,bitness32" responsebufferlimit="0" />       <add name="extensionlessurlhandler-isapi-4.0_64bit" path="*." verb="get,head,post,debug,put,delete,patch,options" modules="isapimodule" scriptprocessor="%windir%\microsoft.net\framework64\v4.0.30319\aspnet_isapi.dll" precondition="classicmode,runtimeversionv4.0,bitness64" responsebufferlimit="0" />       <add name="extensionlessurlhandler-integrated-4.0" path="*." verb="get,head,post,debug,put,delete,patch,options" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" />     </handlers>   </system.webserver>   <runtime>     <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">       <dependentassembly>         <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" />         <bindingredirect oldversion="0.0.0.0-4.0.0.0" newversion="4.0.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="system.web.webpages" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-2.0.0.0" newversion="2.0.0.0" />       </dependentassembly>     </assemblybinding>   </runtime> </configuration> 

i had similar issue , fixed adding zoommode="pagewidth" , sizetoreportcontent="true" reportviewer tag.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -