By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,269 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,269 IT Pros & Developers. It's quick & easy.

C#-App: Loading a Crystal Report fails

P: 2
I have an app, that when it calls ReportDocument.Load(filename), it throws an Exception that just says "Load report failed." Upon further investigation, the ErrorCode is -2147483136, the InnerException's Source is "Analysis Server", it's message is "Failed to open report." (little redundant??) and under the TargetSite, the Module is {CrystalDecisions.ReportAppServer.ClientDoc.dll}. Google searches and the error lookup utility packaged with VS turn up nothing on that particular error code. The outer Exception's Source says "CrystalDecisions.CrystalReports.Engine". Also, the InnerException's StackTrace looks like this, if it helps at all:
" at CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocumentClass.Open(Object& DocumentPath, Int32 Options)\r\n at CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.Open(Object& DocumentPath, Int32 Options)\r\n at CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened()"

I've tried to find that .dll that's named in the Module field, but searches on that file turn up nothing on the dev machine, another computer that has no problems, or Google. Both computers are running Win XP Pro SP2, the dev machine is running VS 2005 and the computer that works is using VS 2003 (both of these have Crystal Reports installed). Also, the filepath that's given to the Load() function is definitely a valid filepath as I'm able to navigate there and open the report file with Crystal Reports. If any more info is needed, just let me know. I'm starting to run out of ideas on fixing this problem and it's the last issue (as far as I can tell) that's keeping this app from rolling out to testing, then production. Many thanks in advance.
Jan 15 '08 #1
Share this Question
Share on Google+
1 Reply


P: 2
Quick update: Reinstalling Crystal Reports, Crystal Reports for Visual Studio 2005 (through the setup program on the VS disc), and Visual Studio have not helped in the slightest. This problem still persists.
Jan 18 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.