We help IT Professionals succeed at work.

Load report failed in Visual Studio .NET 2002

balabommala
balabommala asked
on
Medium Priority
384 Views
Last Modified: 2008-01-09
Hello everybody out there,
I used Visual Studio .NET 2002 to build reports. It is a pure reporting application with around 25 reports. The reports are embedded. Iam using the bundled version of Crystal Reports.
I have created a setup program with around 6 merge modules( 4 merge modules+2 more because I am using ADO.NET datasets). When that setup program is installed on my friend's system, it runs fine. The problem is when I try to run the reports on the development server, I get the error “Load Report Failed”.

How can I make the report run after installation on the "user's" PC?  Please anybody help......

Please don't point me to any url's as I have done enough research. Don't point me to this link especially.
http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf

Thanks a mill.

 
 
Comment
Watch Question

Commented:
“Load Report Failed”... your application can't find and load the specified rpt file. but since you are using embeded report, you shouldn't be facing this problem.
May I know how did you call up your report to display? mind to show us your code?

dylan
Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
Is Crystal and VS installed on the development server?

mlmvv

Author

Commented:
VS(I mean .NET Framework 1.0.3075 is installed) is installed on the development server. and Crystal comes with VS.NET right

Author

Commented:
This is how I was calling the report:
Any suggestions please.

Private Sub CallReport()
        'Dim stor_loc
        'stor_loc = Request.QueryString("storage")
        Dim objDS As DataSet
        objDS = GetFilings()
        ' Creating the XML file for design and report

        'objDS.WriteXmlSchema("C:\ReportsAllEmployeeStatistics.xml")

        ' Assigning the Dataset to the report
        oRpt.SetDataSource(objDS)
        objDS = Nothing
        'With CrystalReportViewer1
        '.ReportSource = oRpt
        '.BestFitPage = True

        '        End With

        Dim crExportOptions As ExportOptions
        crExportOptions = oRpt.ExportOptions
       
        With crExportOptions
            .FormatOptions = New PdfRtfWordFormatOptions()
            .ExportFormatType = ExportFormatType.PortableDocFormat
            .ExportDestinationType = ExportDestinationType.DiskFile
        End With

        Dim req As ExportRequestContext = New ExportRequestContext()
        req.ExportInfo = crExportOptions
        Dim st As System.IO.Stream
        st = oRpt.FormatEngine.ExportToStream(req)
        oRpt = Nothing
        Response.ClearContent()
        Response.ClearHeaders()
        Response.ContentType = "application/pdf"
        Dim b(st.Length) As Byte
        st.Read(b, 0, st.Length)
        Response.BinaryWrite(b)
        st.Close()
        st = Nothing
End Sub

Commented:
Your code is not complete, you should have a line like
oRpt = new CrystalReport1() don't you?

dylan

Author

Commented:
I have that in another function.
This whole application is working in my system. But when i tryto deploy it on he development server, it doesn't.
Do I have to include Dbghelp.dll into my setup project?

Thanks

Commented:
I don't think include DBghelp.dll will help. You could try it anyawy.
I still suspect that you didn't actally embedded your report with your project. From you report's property, did you change your Build Action to "Embedded Resource"?

dylan

Author

Commented:
By default, the reports Build Action property is set to Embedded resource right.
Anyways I checked my reports and all of them have enmedded resource as build action.

Thanks
Commented:
Hmm... I have no idea... could you try the solution from this post?
http://forums.asp.net/1116236/ShowPost.aspx

dylan

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks.
You ponited me to the right link.

Commented:
glad I could help~

dylan
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.