Visual Studio 2005 and Crystal Reports - Load report failed Error

I installed Visual Studio 2005 Professional. When I try to view Crystal Report, I get "Load report failed" error. I did not have a previous version of Crystal Report installed before I install VS 2005. I'm new to Crystal Report and am not sure if this is the configuration problem or something else.

Here is what I did:

1. Created a report called samplereport.rpt. It is a simple blank report with nothing on it.

2. I made a .aspx page called Report.aspx. Then I dropped CrystalReportViewer. Here is the code

        <CR:CrystalReportViewer ID="myCrystalReportViewer" runat="server" AutoDataBind="True" Height="50px" Width="350px" ReportSourceID="CrystalReportSource1" />
        <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            <Report FileName="samplereport.rpt">
            </Report>
        </CR:CrystalReportSource>

for code behind page I added:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

3. when I try to view report.aspx page, I get the "load report failed" error.

I appreciate any help or insights.

Thank you.
      
brooksgroupAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brooksgroupAuthor Commented:
I added the following to web.cofig file and fixed the problem.

 
            <pages>
                  <namespaces>
                        <clear/>
                        <add namespace="System"/>
                        <add namespace="System.Collections"/>
                        <add namespace="System.Collections.Specialized"/>
                        <add namespace="System.Configuration"/>
                        <add namespace="System.Text"/>
                        <add namespace="System.Text.RegularExpressions"/>
                        <add namespace="System.Web"/>
                        <add namespace="System.Web.Caching"/>
                        <add namespace="System.Web.SessionState"/>
                        <add namespace="System.Web.Security"/>
                        <add namespace="System.Web.Profile"/>
                        <add namespace="System.Web.UI"/>
                        <add namespace="System.Web.UI.WebControls"/>
                        <add namespace="System.Web.UI.WebControls.WebParts"/>
                        <add namespace="System.Web.UI.HtmlControls"/>
                  </namespaces>
            </pages>

However, I now have a different problem. I cannot view crystal report toolbar images from the web. I'm not sure where the images files are pulled from. Does anyone know how to fix this? As I stated earlier, I use VS 2005 Professional.

brooksgroupAuthor Commented:
I fixed the problem. I'm using D drive and those images were installed in C drive. Can I have my points back? Thanks.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brooksgroupAuthor Commented:
Yes, please close this question. Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.