SSRS reports

Posted on 2014-07-13
Last Modified: 2016-06-09
My .net web application is close to release. My ssrs report project is not deployed to test server in BIDS 2008 environment. Considering about installation and deployment when my web application goes to production,  I cannot use the same ways while it was in developing.  

What should I do next? I appreciate if someone can tell me what/how I should do while my web application is going to production and even after production.

I remeber the report project can be packaged. I'm not quite sure if or how it is related to my next step. I need my reports go along with my web application lauch.

Thanks a lot!
Question by:minglelinch
    LVL 14

    Expert Comment

    by:Vikas Garg

    You can use the SSRS reports in the Web application and can not include them in the Web application for easy use so you just need to deploy your ssrs reports from your test server to the Production SSRS report server and in the web application where you were given the path for  your local Report server you just need to change it to the production report server with use of a variable .

    Hope this will guide you for what you were looking for
    LVL 1

    Author Comment

    Thanks for responding, but really what I am looking for. In the development stage, I did this on development and testing server. I do not want to use this way for production. That's why I ask this question.

    If I use this way, how to resolve authentication issue? As the DB connection for reports uses window authentication, while in production, Window authentication should not be used any more, right? How to resolve this issue?

    LVL 14

    Accepted Solution


    You can store the username and password in the webconfig while including the SSRS report through report viewer in the ASP web page..

    using Microsoft.Reporting.WebForms;
    using System;
    using System.Net;
    public partial class Reports : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
        private void ShowReportLocalServer()
            string ReportURL1 = "http://localhost/Reportserver_SQL2012";
            ReportViewer1.ServerReport.ReportServerUrl = new Uri(ReportURL1);
            ReportViewer1.ServerReport.ReportPath = "/OM_SSRS/Sales_Report";
            ReportViewer1.ProcessingMode = ProcessingMode.Remote;
            ReportViewer1.SizeToReportContent = true;
        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); } 
                get { return new NetworkCredential(_UserName, _PassWord); } 
            public bool GetFormsCredentials(out Cookie authCookie, out string user, out string password, out string authority) 
                authCookie = null; user = password = authority = null; return false; 

    Open in new window

    Hope the below link would be helpful to you
    LVL 1

    Assisted Solution

    Thanks for all posts. I was actually looking for the method for Report production deployment script.  Now I got to know that rs.exe is what I'm looking for.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
    This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now