none
Regarding Performance Issue for Browsing Reports in Web Application using Report Viewer RRS feed

  • Question

  •  

    Hi All,
    1st of All Wishing You a Very Happy New Year 2009.

    well
    Actually I am facing some performance issue prob when I am trying to access  reports in  web application (Asp.Net 2.0) using Report Viewer Interface (@ Remote Mode using SSRS 2005).
    When I am directly browse my reports using Virtual directory of Report Server (like http://IpAddress/ReportServer) then It working fine.
    But When My Access these reports using Report Viewer in My Web Application .
    The Reports Are being generated too slow..
    How could i resolve my prob that why my report browering is being fast.

    The Code Which i am using in my web application is Paste below....
    Please suggest me where should i made a mistake...

    In Web.Config i am define my Report Server Credentials
    like

    <appSettings>

    <add key="ReportServerURLNIC" value="http://IPAddress/ReportServer>

    <add key="MyReportViewerUserNIC" value="somevalue"/>

    <add key="MyReportViewerPasswordNIC" value="someValue"/>

    <add key="MyReportViewerDomainNIC" value="SomeValue"/>

    </appSettings>



    & the class which is being used for ReportServerCredentials is given below...

    using System;

    using System.Data;

    using System.Configuration;

    using System.Web;

    using System.Web.Security;

    using System.Web.UI;

    using System.Web.UI.WebControls;

    using System.Web.UI.WebControls.WebParts;

    using System.Web.UI.HtmlControls;

    using System.Security.Principal;

    using System.Runtime.InteropServices;

    using Microsoft.Reporting.WebForms;

    using System.Collections;

    using System.Net;






    namespace TSC.Common

    {

    [Serializable]

    public sealed class MyReportServerCredentials :

    IReportServerCredentials

    {

    public WindowsIdentity ImpersonationUser

    {

    get

    {

    return null;

    }

    }

    public ICredentials NetworkCredentials

    {

    get

    {

    string userName =

    ConfigurationManager.AppSettings

    ["MyReportViewerUserNIC"];

    if (string.IsNullOrEmpty(userName))

    throw new Exception(

    "Missing user name from web.config file");

    string password =

    ConfigurationManager.AppSettings

    ["MyReportViewerPasswordNIC"];

    if (string.IsNullOrEmpty(password))

    throw new Exception(

    "Missing password from web.config file");

    string domain =

    ConfigurationManager.AppSettings

    ["MyReportViewerDomainNIC"];

    if (string.IsNullOrEmpty(domain))

    throw new Exception(

    "Missing domain from web.config file");

    return new NetworkCredential(userName, password, domain);

    }

    }

    public bool GetFormsCredentials(out Cookie authCookie,

    out string userName, out string password,

    out string authority)

    {

    authCookie = null;

    userName = null;

    password = null;

    authority = null;

    return false;

    }

    }

    }

    & In my aspx code file I am using the code which given below

    using System;

    using System.Data;

    using System.Configuration;

    using System.Collections;

    using System.Web;

    using System.Web.Security;

    using System.Web.UI;

    using System.Web.UI.WebControls;

    using System.Web.UI.WebControls.WebParts;

    using System.Web.UI.HtmlControls;

    using TSC.Common;

    public partial class Report_MonitoringStatusReport_RptActionPlanEntryStatus : System.Web.UI.Page

    {

    protected void Page_Init(object sender, EventArgs e)

    {

    ReportViewer1.ServerReport.ReportServerCredentials = new MyReportServerCredentials();

    }

    protected void Page_Load(object sender, EventArgs e)

    {

    if (!IsPostBack)

    {

    ReportViewer1.ServerReport.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["ReportServerURLNIC"]);

    ReportViewer1.ServerReport.ReportPath = "RdlFilePath\RdlFileName";

    }

    }

    }




    so this is the entire process through which i can browse my Reports.
    But Unfortunality The Reports browse is too slow..
    so how could i resolve my prob...
    Thanks in Advance....


     

    Thursday, January 1, 2009 9:21 AM

All replies