PDA

View Full Version : [CLOSED] Setup SSRS report with EXT.Net web form



matrixwebtech
Dec 05, 2014, 6:36 PM
Hi
I am trying to implement SSRS reports with EXT.Net web forms in my project ,but facing some problems please help.I mention steps and code sample which I performed.
With Vs 2003 and using Both MVC & Webforms in same project (http://www.asp.net/visual-studio/overview/2013/creating-web-projects-in-visual-studio) .rest project works fine(MVC Part).but facing problem in Reports(Web forms part),find an error in fire bug.
TypeError: Sys.WebForms.Res is undefined and Error:
Sys.InvalidOperationException: Unexpected error: InternalViewer unavailable for _get_direction.

I apologize for posting too much code ,because I think may be these are required.
View


<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/report.Master" AutoEventWireup="true" CodeBehind="Report_MaterialInformation.aspx.cs"
Inherits="ERP.Areas.PurchaseManagement.Views.MasterManagemen t.MaterialInformation.Report_MaterialInformation" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<ext:Viewport runat="server" Layout="BorderLayout">
<Items>
<ext:Panel
runat="server"
Title="North"
Region="North"
Split="true"
Height="50"
BodyPadding="6"
Header="false"
Collapsible="false"
Border="false">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="StretchMax" Padding="5" />
</LayoutConfig>
<Items>

<ext:ComboBox runat="server" ID="cmbCategory" Editable="false" DisplayField="CategoryName" ValueField="MaterialCatergoryID">
<Store>
<ext:Store
runat="server"
ID="CategoryStore"
AutoLoad="false"
OnReadData="CitiesRefresh">
<Model>
<ext:Model runat="server" IDProperty="Id">
<Fields>
<ext:ModelField Name="MaterialCatergoryID" Type="Int" ServerMapping="MaterialCatergoryID" />
<ext:ModelField Name="CategoryName" Type="String" ServerMapping="CategoryName" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Listeners>
<AfterRender Handler="this.getStore().reload()" />

</Listeners>
</ext:ComboBox>
<ext:DisplayField runat="server" Html="&nbsp;" PaddingSpec="0 0 0 10"></ext:DisplayField>
<ext:Button runat="server" ID="btnShow" Text="Show">
<DirectEvents>
<Click OnEvent="btnShow_Click">
<EventMask ShowMask="true" />
<ExtraParams>
<ext:Parameter Name="CategoryID" Value="109" Mode="Raw"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>

</Items>
</ext:Panel>

<ext:Panel
runat="server"
ID="container"
Title="Center"
Border="false"
BodyPadding="6"
Region="Center"
Header="false">
<Content>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ShowParameterPrompts="false" Height="450" Width="100%"
ShowWaitControlCancelLink="false">
</rsweb:ReportViewer>
</Content>
</ext:Panel>
</Items>
</ext:Viewport>
</asp:Content>


Code Behind


protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
ReportParameter[] repParams = new ReportParameter[1];
repParams[0] = new ReportParameter("ID", "109");

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("serverurl");
ReportViewer1.ServerReport.ReportPath = "reportpath";
ReportViewer1.ServerReport.SetParameters(repParams );
ReportViewer1.ServerReport.Refresh();
container.UpdateContent();
}
catch (Exception ex)
{
throw ex;
}
}
}
Web Config


<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
</configSections>
<connectionStrings>

</connectionStrings>
<extnet theme="Default" />
<!--<extnet theme="Gray""Neptune""Default" />-->
<appSettings>
<add key="webpages:Version" value="3.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>
<!--<httpRuntime targetFramework="4.5" />-->
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="Ext.Net" />
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />


</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />

<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />

</httpHandlers>
<httpModules>
<!--<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
<httpRuntime targetFramework="4.5" />
<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.Optimization" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<!--<add namespace="Microsoft.AspNet.Identity" />-->
<add namespace="Ext.Net" />
<add namespace="Ext.Net.MVC" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
<add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
</controls>
</pages>

<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<!--<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
</providers>
</sessionState>-->
<sessionState timeout="540" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<remove name="FormsAuthenticationModule" />
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
</modules>
<handlers>
<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\aspn et_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" />
<add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />


</handlers>
<directoryBrowse enabled="false" />
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
<bindingRedirect oldVersion="0.0.0.0-2.5.0" newVersion="2.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0" newVersion="2.1.1" />
</dependentAssembly>
<!--MVC 3-->
<!--
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-->
<!--MVC 4

<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>

<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-->
<!--MVC 5-->
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

It would be great if you point my mistakes.please let me know if more information required.may be this is not related to EXT.Net,then also please let me know.

Thanks

Daniil
Dec 07, 2014, 9:31 PM
Hi @matrixwebtech,

For the beginning I would try to remove this:

container.UpdateContent();

The UpdateContent method must not be called during the initial page load.

matrixwebtech
Dec 08, 2014, 6:21 PM
I put my code on button click but after click also report not showing and page getting blank.


protected void btnShow_Click(object sender, DirectEventArgs e)
{
try
{
ReportParameter[] repParams = new ReportParameter[1];
repParams[0] = new ReportParameter("CatergoryID", e.ExtraParams["CategoryID"].ToString());

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("reportserver url");
ReportViewer1.ServerReport.ReportPath = "report name";
ReportViewer1.ServerReport.SetParameters(repParams );
ReportViewer1.ServerReport.Refresh();
ReportViewer1.Update();
panelReport.UpdateContent();
}
catch (Exception ex)
{
throw ex;
}
}

the same code working if placed at Page_Load

I just noticed :
Inspect with firebug and just see after button click complete a in response tab in firebug last three function is

Ext.suspendLayouts();
App.panelReport.removeAll();
Ext.resumeLayouts(true);
I think App.panelReport.removeAll(); is remove all content inside panel.am I right?
but with same code after page load in response tab in firebug i found

{serviceResponse:{success:true,data:{"data":[]}}}
this is working fine.

I just try this with simple ASP.Net and work fine.i think I need to configure some thing with EXT.Net,please help.

<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="Scriptmanager1" runat="server"></asp:ScriptManager>

<rsweb:ReportViewer ID="ReportViewer1" runat="server" ShowParameterPrompts="false" Width="100%" Height="100%" ProcessingMode="Remote"
ShowWaitControlCancelLink="false" AsyncRendering="false" SizeToReportContent="True">
</rsweb:ReportViewer>
<asp:Button runat="server" ID="btnshow" OnClick="btnshow_Click" />
<asp:TextBox runat="server" ID="test"></asp:TextBox>
</div>
</form>

protected void btnshow_Click(object sender, EventArgs e)
{
try
{
ReportParameter[] repParams = new ReportParameter[1];
repParams[0] = new ReportParameter("PlayerID", test.Text.ToString());

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ;
IReportServerCredentials irsc = new CustomReportCredentials("administrator", "12345", "http://mgts-it-10");
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://mgts-it-10/ReportServer");
ReportViewer1.ServerReport.ReportPath = "/SSRS_TEST/PlayersReport";
ReportViewer1.ServerReport.SetParameters(repParams );
// ReportViewer1.ServerReport.Refresh();

}
catch (Exception ex)
{
throw ex;
}
}

matrixwebtech
Dec 10, 2014, 11:52 AM
Hi
I found at HTML tab in fire bug the report is generate with bellow code ,but not shown in page.please see attached image.

protected void btnShow_Click(object sender, DirectEventArgs e)
{
try
{
ReportParameter[] repParams = new ReportParameter[1];
repParams[0] = new ReportParameter("CatergoryID", e.ExtraParams["CategoryID"].ToString());

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("reportserver url");
ReportViewer1.ServerReport.ReportPath = "report name";
ReportViewer1.ServerReport.SetParameters(repParams );
ReportViewer1.ServerReport.Refresh();
ReportViewer1.Update();
panelReport.UpdateContent();
}
catch (Exception ex)
{
throw ex;
}
}
17081

Daniil
Dec 11, 2014, 7:18 AM
Please try to replace

ReportViewer1.Update();
panelReport.UpdateContent();

with just

panelReport.UpdateContent();

If it doesn't work, I would need to run it locally to reproduce.

matrixwebtech
Dec 15, 2014, 5:21 AM
hi,Daniil
I try as per your advice doesn't work.please let me know how can I send code to you for local testing.

Daniil
Dec 15, 2014, 5:29 AM
Please clarify what is required to test it locally?

matrixwebtech
Dec 15, 2014, 6:00 AM
You have already installed visual studio ,and for report,you need reporting service, you need to install SQL Server 2008 R2 or latter.is it possible for you?

Daniil
Dec 15, 2014, 3:58 PM
you need to install SQL Server 2008 R2 or latter

Please clarify is that critical? Could you provide us with a connection string to the remote database instead? I would like to avoid dealing with my local SQL server.

matrixwebtech
Dec 15, 2014, 4:07 PM
ok,not a problem.if i give you all credential and links via pm,is that ok?

For local testing you need to add reference Microsoft.ReportViewer.WebForms version 11.please download from nuget

https://www.nuget.org/packages/MicosoftReportViewerWebForms_v11

Sample ASPX

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Report_MaterialInformation.aspx.cs"
Inherits="ERP.Areas.PurchaseManagement.Views.MasterManagemen t.MaterialInformation.Report_MaterialInformation" EnableEventValidation="false" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<form id="f" runat="server">
<asp:scriptmanager runat="server"></asp:scriptmanager>
<ext:ResourceManager ID="ResourceManager1" runat="server" DisableViewState="false" />
<ext:Viewport runat="server" Layout="BorderLayout">
<Items>
<ext:Panel
runat="server"
Title="North"
Region="North"
Split="true"
Height="50"
BodyPadding="6"
Header="false"
Collapsible="false"
Border="false">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="StretchMax" Padding="5" />
</LayoutConfig>
<Items>
<ext:Button runat="server" ID="btnShow" Text="Show">
<DirectEvents>
<Click OnEvent="btnShow_Click">
<EventMask ShowMask="true" />

</Click>
</DirectEvents>
</ext:Button>
</Items>
</ext:Panel>
<ext:Panel
runat="server"
ID="panelReport"
Title="Center"
Border="false"
BodyPadding="6"
Region="Center"
Header="false">
<Content>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ShowParameterPrompts="false" Width="100%" Height="100%" ProcessingMode="Remote"
ShowWaitControlCancelLink="false" AsyncRendering="false" SizeToReportContent="True">
</rsweb:ReportViewer>

</Content>

</ext:Panel>
</Items>
</ext:Viewport>

</form>


Sample ASPX.CS

using Ext.Net;
using Microsoft.Reporting.WebForms;
using System;
using System.Net;

namespace ERP.Areas.PurchaseManagement.Views.MasterManagemen t.MaterialInformation
{

public partial class Report_MaterialInformation : System.Web.UI.Page
{

protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{

}
}

protected void btnShow_Click(object sender, DirectEventArgs e)
{

try
{
ReportParameter[] repParams = new ReportParameter[1];
repParams[0] = new ReportParameter("CatergoryID", "109");
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ;
IReportServerCredentials irsc = new CustomReportCredentials("UserName", "Password", "Domain");
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("ReportServerUrl");
ReportViewer1.ServerReport.ReportPath = "ReportPath";
ReportViewer1.ServerReport.SetParameters(repParams );
panelReport.UpdateContent();
}
catch (Exception ex)
{
throw ex;
}


}


}

public class CustomReportCredentials : IReportServerCredentials
{
private string _UserName;
private string _PassWord;
private string _DomainName;

public CustomReportCredentials(string UserName, string PassWord, string DomainName)
{
_UserName = UserName;
_PassWord = PassWord;
_DomainName = DomainName;
}

public System.Security.Principal.WindowsIdentity ImpersonationUser
{
get { return null; }
}

public ICredentials NetworkCredentials
{
get { return new NetworkCredential(_UserName, _PassWord, _DomainName); }
}

public bool GetFormsCredentials(out Cookie authCookie, out string user,
out string password, out string authority)
{
authCookie = null;
user = password = authority = null;
return false;
}
}
}

Sample WEB.CONFIG


<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
</configSections>
<connectionStrings>

</connectionStrings>
<extnet theme="Default" />

<appSettings>
<add key="webpages:Version" value="3.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>

<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="Ext.Net" />
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
</httpHandlers>
<httpModules>

<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
</httpModules>
<httpRuntime targetFramework="4.5" />
<pages>
<namespaces>

<add namespace="System.Web.WebPages" />

<add namespace="Ext.Net" />
<add namespace="Ext.Net.MVC" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
<add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
</controls>
</pages>

<sessionState timeout="540" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<remove name="FormsAuthenticationModule" />
<add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
</modules>
<handlers>
<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\aspn et_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" />
<add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</handlers>
<directoryBrowse enabled="false" />
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23" />
<bindingRedirect oldVersion="0.0.0.0-2.5.0" newVersion="2.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Transformer.NET" publicKeyToken="e274d618e7c603a7" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0" newVersion="2.1.1" />
</dependentAssembly>

<!--MVC 4-->
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>

</assemblyBinding>
</runtime>
</configuration>

Other credential I send you via PM ,please let me know if you face any problem.

Sorry Daniil ,I am not able to send credentials in pm,I not found that option in my account,may be doing some wrong.I will send a mail to support@object.net with Subject : Setup SSRS report with EXT.Net web form please find the mail .

matrixwebtech
Dec 17, 2014, 4:28 AM
Hi Daniil,please don't test this now,we are facing a problem with our report server.I will let you know after it get fixed.

Daniil
Dec 17, 2014, 10:55 AM
Thanks for the update.

By the way, we are very reluctant to deal with private credentials. Please provide us with some public ones. You can set up some "guest" permissions. Also you will be able to remove these credentials when you want.

As for the code to reproduce the problem. Please provide us with a public link to download a test project. Please see 7. C) here:
Forum Guidelines For Posting New Topics (http://forums.ext.net/showthread.php?3440)

matrixwebtech
Dec 17, 2014, 11:21 AM
Thanks for suggestion


By the way, we are very reluctant to deal with private credentials. Please provide us with some public ones. You can set up some "guest" permissions. Also you will be able to remove these credentials when you want.

I have only one credential from my provider that's why I think I am not able to provide you any public credential.


As for the code to reproduce the problem. Please provide us with a public link to download a test project. Please see 7. C) here:

I read 7.C and found
PLEASE DO NOT INCLUDE .DLL FILES my project contains Microsoft.ReportViewer.WebForms.dll which you can download from nuget.org.am I remove this or keep this?

Daniil
Dec 17, 2014, 11:34 AM
I have only one credential from my provider that's why I think I am not able to provide you any public credential.

I will ask my manager.


my project contains Microsoft.ReportViewer.WebForms.dll which you can download from nuget.org.am I remove this or keep this?

Is it installed via NuGet in the test project? If so, it should be automatically installed when I run the project. There should be a proper NuGet packages.config.

matrixwebtech
Dec 17, 2014, 11:41 AM
ok,I am also contact with service provider,may be they will help.and I try to send you the sample by to day.

matrixwebtech
Dec 17, 2014, 3:17 PM
Hi danill Please Download my sample here and see README.txt for version of EXT.Net dll and its supporting dlls.please add Ext.Net related dlls in bin folder .please let me know if facing any problem.

Daniil
Dec 18, 2014, 7:01 AM
Thank you, I was able to run the test project.

Hard to say what is going wrong. Probably, the reports requires a regular page life cycle. During a DirectEvent it is not regular.

It looks I can suggest the only solution - show a report in a separate iframe page.

matrixwebtech
Dec 18, 2014, 7:25 AM
Hi ,daniil thanks for suggestion


During a DirectEvent it is not regular.
can you please elaborate?or refer any post where I can read more about DirectEvent and its behavior.
I try this without directevent.

<ext:Button runat="server" ID="btnShow" Text="Show" AutoPostBack="true" OnClick="btnshow_Click" >

</ext:Button>


protected void btnshow_Click(object sender, EventArgs e)
{
try
{
............
..............
ReportViewer1.ServerReport.Refresh();

}
catch (Exception ex)
{
throw ex;
}
}
and report show perfectly.
I think for showing report data page need postback,for that reason you also mention
It looks I can suggest the only solution - show a report in a separate iframe page.
am I right?

Daniil
Dec 18, 2014, 7:43 AM
Yes, I meant that a "hard" ASP.NET PostBack appears to be required for a SSRS report.

matrixwebtech
Dec 18, 2014, 7:52 AM
Hi
I remove download link from my previous post.I think we come to a conclusion point.
that a "hard" ASP.NET PostBack appears to be required for a SSRS report. please close this.