locked
SSRS report not updated after "successful" deployment RRS feed

  • Question

  • User2128776521 posted

    To Whom It Concerns -- FWIW, this bug still exists in VS 2013. Visual Studio does NOT update always update a report on the server after deployment. Ug. What a stinky bug. When I deploy my report from VS the deployment "succeeds" but the report is NOT updated on the server. The only sure-fire workaround that I have found is to deploy a new version of the report each time by giving the new version a new file name. So I have "MyReportV01.rdl" then "MyReportV02.rdl" and etc. This forces a new version onto the server and it works find. But, of course, it stinks too because my report name references must be updated in my clients and it leaves orphans on the server. The orphans are not a big deal and I do not care about them and centralizing the report name in config settings mitigates the reference update headache. Still, VS has a bug here and it should just brute-force deploy and save us this workaround. Oh well. Put it on the TODO list MS, please. Yes, this is just one man's experience and your mileage may vary but this bug does exist here in VS2013+Win7+SsrsReportServer2008 fully-patched as of now If you have a real solution, then please post here because I am happy to be be proven wrong in such a case. -- Mark Kamoski

    Monday, July 13, 2015 11:07 AM

Answers

  • User1644755831 posted

    Hello mkamoski2,

    1. Check the property of the RDLC file and see what is the property Copy to Output Directory is set to. Change it to Copy if newer. (In the solution explorer right click and properties.)

    2. if that does not work you can set them as Embedded Resources. and get the resource at runtime. This way your RDLC will be deployed with the dll and not as content.

    and then load the embedded report using Report.LoadReportDefinition (Stream)

    var assembly = Assembly.GetExecutingAssembly();
    Stream stream = assembly.GetManifestResourceStream("Reports.MyReport.rdlc"); reportViewer.LocalReport.LoadReportDefinition(stream);

    Hope this helps.

    With Regards,

    Krunal Parekh

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 3:29 AM