Crystal Report 11 error "AccessViolationException was unhandled" on windows

We have migrated VB code to VS 2010. We are using Crystal Report 11 with Visual Studio 2010, Crystal report is working fine with other Windows OS but not working in Windows 7 OS it throws an error "AccessViolationException was unhandled". We are using Crystal Report viewer, the error stops at the viewer control and gives the above error. Please let me know what is the solution for this
Note: All admin rights has been given to system

Only version of CR runtime supported in VS 2010 is Cr for VS 2010:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe
Thank you
Don

Similar Messages

  • Crystal Reports error - The Report Application Server failed

    Hi,
    I am getting the following error on XP Professional system. These reports were built earlier by one of my collegue and am trying to use the app but i stuck up getting the below error. The report gets failed
    repPath=Server.MapPath ("./Reports/Umbrellas.rpt");
    crReportDocument.Load(repPath); //Fails here
    crReportDocument=SetLogonForReport(crReportDocument);
    crReportDocument.SetParameterValue ("fromDate",DateTime.Parse (fromdt) );
    crReportDocument.SetParameterValue ("toDate", DateTime.Parse (todt) );
    I tried in design time attaching to Crystal Reports Viewer object , i get the same error. It looks like something related to Crystal Reports got corrupted in this system.
    Please find the stack trace for the error
    Stack Trace:
    [COMException (0x80004005): The Report Application Server failed]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    [Exception: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated)
       CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)
       CrystalDecisions.Web.ReportAgent.  (Boolean  o)
       CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
       System.Web.UI.Control.PreRenderRecursiveInternal() +62
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Page.ProcessRequestMain() +1488
    Environment:
    .NET v1.1.4322
    Crystal Reports 10.0.0.533
    OS: Windows XP Professional - Ver 2002  Severice Pack 2
    I tried some of the solutions provided  by searching web,  it does not work. Please help!!!
    Appreciate your help on this.
    Edited by: KMallik2000 on Jul 15, 2009 4:39 PM

    Hi,
    I am trying to replicate the same issue on new desktop which has crystal reports 9.1 & 10 installed. I still see crystal reports 9.1 controls when i open VS.net. when i compare both desktop installed softwares, i found that the other desktop has "Crystal Reports 10 .NET runtime installed" which is not there on the new desktop. please advise whether i need to install this software to get ver 10 components installed? Appreciate your help on this. can you also advise the software download location for 10 .net run time installation?
    In other words, though crystal reports 10 got installed on this desktop but it is not getting referenced in VS.NET. I am seeing only 9.1 version assemblies are being used. hence my solution is not getting compiled in this desktop. Please advise how to get the version 10 assemblies referenced in the solution
    Edited by: KMallik2000 on Jul 20, 2009 4:46 PM

  • Crystal report error on Target Machine

    We have to provide application exe to our clients. The application is developed in Visual Studio.Net 2010 and by using SAP crystal report CRforVS_13_0. Client must be able to fire reports on their target machine on which the Dot Net framework and u201CCRforVS_redist_install_64bit_13_0_1u201C run time utility is installed. But it gives a crystal report error on the target machine.
    Our development and target machines have Win 7 Professional, 64-bit OS installed.
    Kindly provide us with an appropriate run time version for target machine in order to fire reports or any other solution in order to make our project work on target machine.
    Thanks!

    Thanks a lot Don for your valuable suggestions.
    We have already taken care of the points which you mentioned in your reply on development side. Also, we have downloaded crystal report from the link which you posted but on DEPLOYMENT side we are unable to run reports from our application.
    It gives the notification when we try to install crystal report on a target machine as "You must have visual studio 2010 installed in order to install the crystal report".
    The DEPLOYMENT problem we are facing is in RUNTIME environment on TARGET machine.  Our TRAGET machine has properly installed Win 7 Professional 64 bit,  .NET Framework Ver 4 and CRforVS_redist_install_64bit_13_0_1 . We also have properly installed application on this machine. We got no errors while installing any of the above. The problem starts when we fire a report on target machine from the application.
    We get the error as "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception"
    So, we are looking for an appropriate RUN TIME version of Crystal Report which can be installed on the target machine to fire reports (where visual studio 2010 is not installed).
    Please help suggest an exact version to download for target machine and the steps if it has a specific procedure.
    Thank you!
    Ruchir

  • Crystal Reports Error - BOBJ is undefined

    Post Author: cstent
    CA Forum: Crystal Reports
    Hi
    I recently upgraded from crystal reports 10 to 12 and am now coming accross an error when i try and deploy a crystal report viewer onto a webpage.
    Im getting a javascript page error "'bobj' is undefined".
    Searching on the web i can only find one other person who has come accross this error, and not posted the solution.
    Any ideas?

    Crystal Reports Error - BOBJ is indefinido
    hola para los que no Leen inglés.
    este error se dió cuando quise ejecutar el reporte en formato HTML.
    las causas son estas, cuano se instala el runtime solo se instala en C:Inetpubwwwrootaspnet_clientsystem_web2_0_50727
    alli dentro tiene los formularios, y el javascript para que se ejecute el reporte en html (todo el viewer).
    cuando quise ejecutar el reporte tengo otra ruta que se llama c:Inetpubwwwpruebasaspnet_clientsystem_web y me marcaba el error, eso es porque los scripts no se encontraban en esa ruta.
    PARA RESOLVERLO solo copiar el system web de wwwroot y pegarlo en la otra ruta. con eso solucionan el problema.
    saludos desde MTY Mex.

  • Crystal Report Error while doing Email Billing

    After emailing approx. 497 invoices utilizing MS Dynamics, we are getting the following errors; In addition, we have to respond to numerous printing prompts presented by Crystal Report, v11.
    Error in ASI_SEND_MAIL_WITH_Outlook.
    Error: Object require error number: 424
    Error in ASI_OpenReport.
    Error: Invalid TLV record.
    Error Number: -2147206429
    What is causing the program to abort with the above Crystal Report errors?

    Hello,
    This may be caused by load. Where one report is not complete before the next one is called.
    It would be difficult to determine without having access to the source code.
    The trouble-shooting should be done by MS Dynamics since it is coming from inside their application and they can involve Business Objects if they have questions.
    Elaine

  • Getting an error trying to install Crystal Reports 2008 on a 64 bit Windows

    reformatted my computer and now I'm trying to install Crystal Reports 2008 on 64 bit windows 7 box.  When the "Registering modules" portion of the install comes up, I get a message that a dll has failed to register.  I saw something about not having the Microsoft Visual c++ 2005 redistributable pack (x86) installed but that was not it either.
    The cd label say Crystal Reports to Crystal Reports 2008 Upgrade, but it does not seem like I have to have the older version of Crystal insatlled.
    Any ideas how to fix this ?

    Hello together,
    i've had the same problem. Tried to install CR SP 2 "cr2008win_sp2.exe" onto an existing CR 2008 SP1 installation, and got the above error. After extracting the cr2008win_sp2.exe to an folder using Winzip (or just start Installation, the source would be extracted to "c:\temp" ), navigate to the subfolder "\package" and execute the CrystalReports.msp (in my case: c:\temp\package\CrystalReports.msp). This start's the Installation of SP 2. If you get an version mismatch, use parameter SKIP_PATCH_VERSION_CHECK=1 by typing command in an dos prompt "c:\temp\package\CrystalReports.msp SKIP_PATCH_VERSION_CHECK=1" but remember, you need to have an SP1 installed (somebody said, SP's are incremental).
    Reboot and apply then the  CR 2008 SP2 FixPack 7 "cr2008fp27.exe". Use this Link to Download CR and Xcelsius Stuff:
    [https://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm]
    I would suggest you not to use IE for downloading, use an alternative browser. I got only bad downloads (IE8 on Win7).
    This is the way i did and this works pretty good.
    Good Luck
    Matthias

  • Error when use Crystal report Bundled Version with Vs2003 on Windows Vista

    Post Author: MartinoLuccarelli
    CA Forum: .NET
    Hi,  I have developed a software with Vs2003 that uses Crystal report Bundled Version.   I have created a Installation package that include the merge modules,   and i have entered the Licence Key for Crystal_regWiz2003 module.    If i install and use the software in the computer with XP or Windows 2000 I do not have problems.    But when i install the software on the PC with Windows Vista i have this error when the probram show a report "Operazine di Crystal Report non Riuscita perche' non e' stato possibile ottenere una licenza gratuita nel tempo allocato"  Thank's

    Uninstall CRVS2010 that you currently have installed.
    To remove the assemblies from the GAC use gacutil. Google will get you a number of links on how to. Also, see the KB [1535325  - How to remove CRVS2010 Beta 2|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333335333333323335%7D.do].
    Reinstall CRVS2010 SP1 from here:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]
    - Ludek

  • Crystal report Error for CRVS2010 sp2 using Push Method

    I am trying to pass a dataset to a crystal report viewer using SetDatabaseSource.
    I have defined in Crystal to used an ADO .Net Database XML Schema.
    I pass a Dataset to the Report By using SetDatbaseSourece and set the ReportSource for the CrystalViewer but I get the error that crdb_adoplus.dll does not exists.
    Note that Crystal is looking for crdb_adoplus.dll under subdirectory dotnet1.  It resides under win32_x86.
    Is this a Crystal Report Problem ?
    Is their any docuentation that show how to program for ADO xml dataset using crvs2010 ?
    The Error Reads
    System.IO.FileNotFoundException was unhandled
      Message=Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
      Source=mscorlib
      FileName=file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
      FusionLog==== Pre-bind state information ===
    LOG: User = WKST04\GARYB
    LOG: Where-ref bind. Location = C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
    LOG: Appbase = file:///D:/S_and_G/LMS_DotNet/LMS_Solution/LMS/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in LoadFrom load context.
    WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
    LOG: Using application configuration file: D:\S_and_G\LMS_DotNet\LMS_Solution\LMS\bin\Debug\LMS.vshost.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Attempting download of new URL file:///C:/Program Files (x86)/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win32_x86/dotnet1/crdb_adoplus.dll.
      StackTrace:
           at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
           at System.Reflection.Assembly.LoadFrom(String assemblyFile)
           at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)
      InnerException:

    Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel
    Crystal Reports for .NET Framework 4.0 (CRforVS_13_0_2)
    project WPF net 4.0
    crReport = new Reports.Buh.Cma.cr_balances_cma_move();
    using (DataTable tbl = new DataTable())
       using (SqlConnection cn = new SqlConnection(ConnectToDataBase.GetSqlConnectionString()))
             using (SqlCommand cmd = cn.CreateCommand())
                    cmd.CommandText = "proc_name";
                    cmd.CommandType = CommandType.StoredProcedure;
                    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                            cn.Open();
                            da.Fill(tbl);
      crReport.SetDataSource(tbl);
      crReport.SetParameterValue(4, param["report_name"]);
      myDateTime.GetServerDate();
      crReport.SummaryInfo.ReportAuthor = App.GetPrintInfo();
      e.Result = crReport;
    erorr_message - Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. Не удается найти указанный файл.
    help plz

  • Crystal report error in SAP

    I have linked my first Crystal report into SAP (2007A), but when I try to run it I get an error. 
    Msg header "SAP Crystal AddOn"....Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version = 12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    I searched the SAP forums, but found nothing regarding this error. Anybody have an idea how to fix? I can't see my Crystal report.  Does the report need to be stored in a specific location for it to be called from SAP?  I was able to browse to it when I setup the link in SAP.
    Edited by: shredder on Nov 17, 2009 11:52 PM

    Hi Shredder ,
    Actually you should have posted in reporting and printing forum ..anyway close your previous thread too..
    and please take a look at this
    *I copy from the other thread *
    Client you need to install .net framework 3.5 and Crystal Run time to run reports.
    in the client make sure the shared directory is accessible from run without any password
    and in the add on go to report properties and set the path to the shared folder .rpt files and apply changes
    use OLE DB connection
    CRYSTAL REPORTS 2008 V1 FOR B1
    (click on Installation)
    https://websmp208.sap-ag.de/~form/handler?_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=N&FUNCTIONBAR=N&EVENT=TREE&TMPL=01200314690900002156&V=INST
    Crystal Reports Integration for SAP Business One
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/707f51b3-0b20-2b10-8daa-d8ee72ace309 [original link is broken]
    in case you have any problem installation go through the demo and make sure you have installed correctly
    https://websmp201.sap-ag.de/~sapidp/011000358700000727712008E.htm
    Hope this helps
    Bishal

  • Crystal Report Error During Upload

    Hello
    I currently have Business Objects enterprise 11 installed on 2 diff servers. 1 is a linux server and 1 is a Windows Server 2003 box. I am currently trying to migrate my reports from the Linux box to the Windows Server 2003 box. When I try to upload the report I get the following error:
    Retrieve Error There was an error while retrieving data from the server: Failed to read data from report file C:\WINNT\Temp\KTL_pres_Daily.rpt. Reason: Operation not yet implemented. File C:\WINNT\TEMP\tmpreport\~cib985607f115140.rpt.
    The version on the linux box is:
    Build Date: 2005/06/09 22:18:48
    Build Number: 1775
    Product Version: 11.0.0.1775
    The version on the Windows box is: 
    Build Date: 2004/12/07 22:36:48
    Build Number: 748
    Product Version: 11.0.0.748
    Is there anything I am doing wrong and more importantly how can I get these reports uploaded onto my windows box

    What version of Crystal Reports?
    What CR Service Pack are you on?
    What is the database?
    How are you connecting to the databse (ODBC, OLE DB, etc.)?
    - Ludek

  • Crystal Reports Error, Developer Edition, XI R2

    Post Author: squiggly12
    CA Forum: Deployment
    I have a non embedded report sitting on a network server, and I have a program that when a menu link is clicked, it calls a .net dll which then popluates a .net 2.0 dataset, then crystal will load that table, and display my report. This works fine on any computer that has a full install of crystal, but when i try to run it from a client computer, this error shows.
    I was going to add an image to this post, but I am not able to as the little insert/edit image button isn't working. So i'm going to type out the full error message.
    An error has occurred while attempting to load the crystal reports runtime.
    Either the crystal reports registry key permissions are insufficient or the crystal reports runtime is not installed correctly.
    please install the appropriate crystal reports redistributable (crredist*.msi) containing the currect version of the crystal reports runtime (x86, x64, or itanium) required. Please go to http://ww.businessobjects.com/support for more information.
                                                 [OK button here]

    Any news on this thread, I have exactly the same problem, at this time, It has passed 2 years, and I do not find any solution yet!
    Can anyone provide me on solution.
    I have bought CR XI, I have installed Vista x64 on my developer machine, and I will not rollback to Windows XP x86.
    Does BO have one Runtime (AT LEAST for develop), because I can build reports, but I cannot test them because the code does not run without the x64 version of the Runtime.
    If I do not have any solution in 2 weeks I will garbage Crystal Reports and go for Another solution, and start selling another solutions integrated on our products.
    Thanks
    Rui Silva

  • Crystal Reports 2011 getting An unhandled win32 exception occurred in crw32

    I am using Crystal reports 2011 with windows XP. I am getting the error message "An unhandled win32 exception occurred in crw32.exe"  I have seen the resolution for this at ""Unhandled win32 exception occurred in crw32.exe [2920]."" but this does not work either. I have added every possible .exe to not use DEP, that I could find in the Business Objects folder. The Business Objects folder is the correct folder. There is not any other folder in "Program Files" that is related to Crystal Reports. Can anyone help with this. I have come to the conclusion that the only solution is to switch to DevExpress Reports. Don't want to have to but, I have customers who are expecting working reports. I am using a MySQL database with version 5.1 ODBC driver. Another developer has Vista operating system running the same version of Crystal Reports, same database and ODBC driver and it works fine for him. Please don't say upgrade to Vista because the majority of my customer base is using XP. I would appreciate if someone could share some incite here. Thank you in advance.

    Hello,
    First thing is to download 5.3 DataDirect Drivers.
    DEP is not a problem as of CR XI R2 SP6 and CR 2008 SP 2.
    When are you getting the error when opening Crystal or at some other click?
    Check your Anti-virus software, it will block access to dependencies CR requires or access to the Registry.
    Look in your AV logs to see if it's logging that it's blocking access to something.
    Also, CR 2011 requires Windows XP SP3.
    And if you have not downloaded SP1 or SP 2 try uninstalling CR and then without running CR between installs complete them first and then try again.
    AND you must be a local PC Administrator to install.
    Don
    Edited by: Don Williams on Nov 13, 2011 6:37 AM

  • User cannot access Crystal reports after user was deleted and recreated

    We are using Crystal Enterprise XIr2.  We are using Windows AD authentication.  We had an issue with a user where they were deleted in Active Directory.  Now they can no longer run Crystal reports.  When I go into the CMC and open users I see this user.  When I try to open this user I get the following error
    There was an error while retrieving data from the server: Active Directory Authentication failed to get the Active Directory groups for the account with ID "8B003DF11D45B244AC3B61AB36B6C445:ALLENDG". Please make sure this account is valid and belongs to an accessible domain.
    I think Crystal is still trying to access the user's old Active Directory account.
    I cannot delete the user either in CMC.
    Is there someway I can correct this user.
    Thanks
    Adam

    Arjun - Thank you for your help.  I looked in Central Management Console but I could not find what you indicated.
    CMC--> Public Folder --> Administration Tools
    In administration tool, there are two objects
    1) Update Windows AD Group Graph
    2) Update Windows AD Group Graph and Aliases --> Right click on this Report and click on RUN Now.
    I ended up deleting the records for this user in these SQL tables and then user could access InfoView
    CMS_Aliases5 (2 records for this user)
    CMS_InfoObjects5 (1 record with both aliases)

  • SAP Crystal Report using SQL Server Authentication and Windows Authenticati

    I'm a SAP Crystal Report, version for Visual Studio 2010 Beginner
    my ingredients are
    1.windows 7 ultimate service pack1
    2.sql server 2008 standard edition
    3.visual studio 2010 pro
    4.SAP Crystal Report, version for visual studio.net
    I was created a report named customersByCity.rpt using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> I'm supply Server, User ID, Password and Database. I assume me using SQL Server Authentication for my report
    Then, my ASP.NET files as following
    //ASP.NET
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewCustomersByCity.aspx.cs" Inherits="viewCustomersByCity" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div><asp:Label ID="lblMsg" runat="server" BackColor="Yellow" ForeColor="Black"></asp:Label>
     <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>
        </div>
        </form>
    </body>
    </html>
    //code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Collections;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    public partial class viewCustomersByCity : System.Web.UI.Page
        private const string PARAMETER_FIELD_NAME = "city";   
        private ReportDocument customersByCityReport;
        private void ConfigureCrystalReports()
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = @"WKM1925-PCWKM1925";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.UserID = "sa";
            connectionInfo.Password = "sysadmin25";
            SetDBLogonForReport(connectionInfo);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo)
            TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                tableLogOnInfo.ConnectionInfo = connectionInfo;
        private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
            ParameterValues currentParameterValues = new ParameterValues();
            foreach (object submittedValue in arrayList)
                ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
                parameterDiscreteValue.Value = submittedValue.ToString();
                currentParameterValues.Add(parameterDiscreteValue);
            ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
            ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions[PARAMETER_FIELD_NAME];
            parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
        protected void Page_Load(object sender, EventArgs e)
            customersByCityReport = new ReportDocument();
            string reportPath = Server.MapPath("customersByCity.rpt");
            customersByCityReport.Load(reportPath);
            ConfigureCrystalReports();
            ArrayList arrayList = new ArrayList();
            arrayList.Add("paris");
            arrayList.Add("Madrid");
            arrayList.Add("Marseille");
            arrayList.Add("Buenos Aires");
            arrayList.Add("Sao Paulo");
            ParameterFields parameterFields = CrystalReportViewer1.ParameterFieldInfo;
            SetCurrentValuesForParameterField(customersByCityReport, arrayList);
            CrystalReportViewer1.ReportSource = customersByCityReport;
    1st scenario
    When in a runtime, it's keep appear a dialog box. This dialog box ask me to suppy Server, User ID, Password and Database. Once all information is supplied, my report display the data as expected
    2nd scenario
    I change my report using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> checked on Integrated Security. I just choose Server, and Database. I assume me using Windows Authentication
    When in a runtime, there's no dialog box as above. My report display the data as expected. really cool
    Look's like, when report using SQL Server Authentication there's some problem. but, when report using Windows Authentication, it's fine.
    I'm looking for comment. Please help me

    Hello,
    MS SQL Server 2008 requires you to install the MS Client Tools for 2008.
    Once install then update all of your reports to use the SQL Native 10 as the OLE DB driver.
    The try again, if it still fails search, lots of sample log on code in this forum.
    Don

  • Crystal Report error - The Handle is invalid;

    I get the error 'The handle is Invalid' when I try to print a crystal report that is opened in the Report viewer.
    I was wondering if anyone has encountered this is has a solution.
    The report was created using Crystal Report 2008 for SAP B1.
    Regards
    Albert

    Albert,
    You may check those old threads first:
    Embarrasing issue
    Re: 5 : - The handle is invalid
    Landscape test connection failure: The handle is invalid.
    Thanks,
    Gordon

Maybe you are looking for