• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 48
  • Last Modified:

SSRS reports

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!
0
minglelinch
Asked:
minglelinch
  • 2
  • 2
2 Solutions
 
Vikas GargBusiness Intelligence DeveloperCommented:
Hi,

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
0
 
minglelinchAuthor Commented:
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?

Thanks.
0
 
Vikas GargBusiness Intelligence DeveloperCommented:
Hello,

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)
        {
            //ShowReportRemoteServer();
            ShowReportLocalServer();
        }

    }

    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;
        ReportViewer1.ServerReport.Refresh();
    }

    
    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

http://stackoverflow.com/questions/671694/passing-credentials-to-sql-report-server-2008
0
 
minglelinchAuthor Commented:
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.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now