CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.

Post Author: olabisi
CA Forum: .NET
Hello All,
i am working on a project and try to come up with a report using crystal report that is embedded with vs 2003.net and the following error was generated.
this is the error in detail:
Server Error in '/BISI' Application.
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[LogOnException: Logon failed.]
    . I(String   , EngineExceptionErrorID   )
    . D(Int16   , Int32   )
    . C(Int16   )
   CrystalDecisions.CrystalReports.Engine.FormatEngine.GetLastPageNumber(ReportPageRequestContext reqContext)
   CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
   CrystalDecisions.Web.ReportAgent.get_LastPageNumber()
   CrystalDecisions.Web.ReportAgent.u(Boolean  n)
   CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
   System.Web.UI.Control.PreRenderRecursiveInternal()
   System.Web.UI.Control.PreRenderRecursiveInternal()
   System.Web.UI.Control.PreRenderRecursiveInternal()
   System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Note: this report has a main report that have three subreport in it. It was working fine until i added the third sub report to the main form.I will be glad if a solution could come up fast. This is  my email : [email protected] or [email protected]
Jacobs

I would recommend looking at this White paper on how to logon to a database:
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
Right now, looking at your code, it's quite convoluted. E.g.; you se the connection info, then load the report, then set it to the viewer, then do setdatabaselogon...
You may also want to see the sample app vbnet_win_dbengine sample app in this download:
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
Finally, I'd recommend that you search these forums as there are a  number of great solutions here also.
Ludek

Similar Messages

  • Pls Help Out: Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.

    Post Author: olabisi
    CA Forum: .NET
    Hello All,
    i am working on a project and try to come up with a report using crystal report that is embedded with vs 2003.net and the following error was generated.
    this is the error in detail:
    Server Error in '/BISI' Application.
    Logon failed.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
    [LogOnException: Logon failed.]
        . I(String   , EngineExceptionErrorID   )
        . D(Int16   , Int32   )
        . C(Int16   )
       CrystalDecisions.CrystalReports.Engine.FormatEngine.GetLastPageNumber(ReportPageRequestContext reqContext)
       CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       CrystalDecisions.Web.ReportAgent.get_LastPageNumber()
       CrystalDecisions.Web.ReportAgent.u(Boolean  n)
       CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
       System.Web.UI.Control.PreRenderRecursiveInternal()
       System.Web.UI.Control.PreRenderRecursiveInternal()
       System.Web.UI.Control.PreRenderRecursiveInternal()
       System.Web.UI.Page.ProcessRequestMain()
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
    Note: this report has a main report that have three subreport in it. It was working fine until i added the third sub report to the main form.I will be glad if a solution could come up fast. This is  my email : [email protected] or [email protected]
    Jacobs

    Post Author: mewdied
    CA Forum: .NET
    You need to make sure that you are passing the database logon code to the third sub-report correctly.  If you are currently only passing database logon to the main report, it may be that the other two subreports are using the same connection as the main, but the third one is using something different.

  • 'Load report failed' msg reported by CrystalDecisions.CrystalReports.Engine

    Dear member,
    We are using Crystal Report viewer (Version 11.5) from our Web based product on Windows Server 2003.
    Sometime when we run the report generating application we get the error message 'Load report failed'.
    So far, we don't find any problem in our product.
    Has someone experienced a similar problem?
    How did you solve the issue?
    Thanks and best regards,
    Makoto
    Below are the error messages detail logged on event logs.
    Event Type:     Error
    Event Source:     AvantGard eTreasury
    Event Category:     None
    Event ID:     140
    Date:          4/02/2011
    Time:          2:21:31 PM
    User:          N/A
    Computer:     JP0010SWFIN41
    Description:
    The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
    Target: EnsureDocumentIsOpened
    Function: .Initialise
    Message: Load report failed..
    Event Type:     Error
    Event Source:     AvantGard eTreasury
    Event Category:     None
    Event ID:     140
    Date:          4/02/2011
    Time:          2:14:18 PM
    User:          N/A
    Computer:     JP0010SWFIN41
    Description:
    The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
    Target: PEOpenEngineEx
    Function: .Initialise
    Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..

    Make sure you are closing and disposing of the report object once you are finished with them.
    What Service Pack are you on?
    Thank you
    Don

  • Incorrect CrystalDecisions.CrystalReports.Engine.Table.Location

    Hi All,
    I'm doing a project where my report developer team is developing reports in Crystal reports XI.
    This report use oledb provider to connect to sql server 2000. 
    I have tables name like
    "abcowner.xyztable"
    "pqrowner.xyztable"
    so same table in different owner/schema.
    Crystal report is using "pqrowner.xyztable" and it runs fine in crystal report. 
    I'm have embedded this report in asp.net 3.5 and using 11.5.37.0 runtime. When this report is run in asp.net application using
    CrystalDecisions.CrystalReports.Engine.ReportDocument() , it's using table in different schema i.e. "abcowner.xyztable".
    I have to manually change the location of the table to point to correct owner.  I can't fix like this becuase the application wouldn't know which owner/schema to pick.
    foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
                        crTableLogonInfo = crTable.LogOnInfo;
                        crTableLogonInfo.ConnectionInfo = crConnectionInfo;
                        string strLocation = crConnectionInfo.DatabaseName + "SCHEMA/OWNER." + crTable.Location.Substring(crTable.Location.LastIndexOf(".") + 1);
                        crTable.ApplyLogOnInfo(crTableLogonInfo);
                        crTable.Location = strLocation;
    Any suggestion ?
    Thanks
    Thanks in advance.

    One thing I'd do 1st is make sure you are on [SP 6|https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe]. Eventually you'll need the SP 6 runtime:
    CR XI r2 (SP6) MSM     
    https://smpdl.sap-ag.de/~sapidp/012002523100000634042010E/crxir2sp6_net_mm.zip
    CR XI r2 (SP6) MSI     
    https://smpdl.sap-ag.de/~sapidp/012002523100000633302010E/crxir2sp6_net_si.zip
    Perhaps using the InProc RAS SDK will be better also. See KB [1553921  - Is there a utility that would help in writing database logon code?|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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do].
    - Ludek

  • CrystalDecisions.CrystalReports.Engine.DataSourceException with VS 2010 4.0

    Hi All,
    i have converted my Windows 2.0 Application to 4.0 framework & installed Crystal Reports For VS 2010.
    we have also upgraded to 64 bit.
    But i am not able to open the Reports at runtime it throws an error :
    "Failed to Load Database information".
    CrystalDecisions.CrystalReports.Engine.DataSourceException
    i m using Dataset as a datasource which i set at runtime
    & xml as Schema for Report Design it was working fine before i upgraded to 4.0 Framework.
    m i missing some Reference or Assembly??
    Edited by: Varsha Ramnani on Mar 15, 2011 6:50 AM

    Moved to .NET SDK forum....
    Search first, lots of info available.
    Go to the bottom of this page to get the distribution packages for your updated app:
    http://www.sdn.sap.com/irj/boc/crystalreports-dotnet
    You also need to set the CPU to x86 or X64 depending on which platform your WEB server is running in, 32 or 64 bit mode.
    And set the Framework to for the Full version, not the client only.
    CR for VS 2010 is the only version supported in VS 2010.
    Don

  • CrystalDecisions.CrystalReports.Engine version 9.1.5000 assembly missing

    Hi I'm a potential employee for a software developing company called Data Futures. I recently applied for the Quality Assurance Specialists job and they gave me a project to work on to determine If I'm a good fit for their company. The project is to write and execute a test plan for an application program. When I try to run this application program it runs fine until I click the reports option. When I click it the program throws an exception saying it's missing the CrystalDecisions.CrystalReports.Engine version 9.1.5000. I did alot of googling on the net and I think I know the problem but I'm not 100% sure. I think according to the assembly version it shows that I need the Crystal Reports for Visual Studio 2003 .NET runtime files. Am I correct in assuming that? I don't have either CR or VS 2003 on my computer. Because I don't have VS 2003.NET  I don't think I can use merge files(.msm). If I find msi files will I need to enter a product key to install them? The application program they gave me didn't come as a deployment package. All they gave me was the executable, some dlls and some other files with it but no runtime files to make it run properly. Please Help! Here is the exact error I get:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text **************
    System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
       at SlickSellCustomerInvoicesSystem.DisplayForm..ctor(DataSet dataset)
       at SlickSellCustomerInvoicesSystem.RunReports.RunInvoiceReport()
       at SlickSellCustomerInvoicesSystem.MainForm.menuItemAllInvoiceRpt_Click(Object sender, EventArgs e)
       at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.MenuItem.MenuItemData.Execute()
       at System.Windows.Forms.Command.Invoke()
       at System.Windows.Forms.Command.DispatchID(Int32 id)
       at System.Windows.Forms.Control.WmCommand(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    SlickSellCustomerInvoicesSystem
        Assembly Version: 1.0.1867.16218
        Win32 Version: 1.0.1867.16218
        CodeBase: file:///C:/Documents%20and%20Settings/Tommy/Desktop/Sample%20Test%20Project/SlickSellSolution/SlickSellSolution/SlickSellSolution/SlickSellCustomerInvoicesSystem/obj/Release/SlickSellCustomerInvoicesSystem.exe
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Data
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    I assume this is posted in error as it is the same as:
    CrystalDecisions.CrystalReports.Engine version 9.1.5000 assembly missing
    Thus marking as answered and locking
    Ludek

  • CrystalDecisions.CrystalReports.Engine.InternalException Error

    Post Author: crash75k
    CA Forum: .NET
    I am getting the following error when generating and printing a crystal report from my .net project.  It's rather intermitant, that is i know the data isn't the problem as have re-run a record which caused the error and it printed successfully.  Little bit confused as to actually what is causing the problem?  One thing i did try is moving to a different printer which helped, that is the problem happens less frequently but still occurs. Any ideas Ta  CrystalDecisions.CrystalReports.Engine.InternalException: Error in File F:\DOCUME1\ADMINI1.RIM\LOCALS1\Temp\Omgeo Import Print {7AE4245E-AC71-47F2-BEDB-C76014B48B83}.rpt:The request could not be submitted for background processing. ---> System.Runtime.InteropServices.COMException (0x800002AD): Error in File F:\DOCUME1\ADMINI1.RIM\LOCALS1\Temp\Omgeo Import Print {7AE4245E-AC71-47F2-BEDB-C76014B48B83}.rpt:The request could not be submitted for background processing.   at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)   at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)   --- End of inner exception stack trace ---   at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable)   at OmgeoImporter.CrystalComponent.setDataSetTable(DataTable dsp)   at OmgeoImporter.Importer.printCrystal(DataSet txtds)

    Post Author: MJ@BOBJ
    CA Forum: .NET
    Intermittent issues can be very difficult to troubleshoot and solve.  This particular error typically occurs when trying to process data (not necessarily a particular row of data), but it could be related to other things (as you noticed when changing printer drivers).  I would make sure you have the latest patch for the version of CR you are using as there have been fixes done for this error.
    Otherwise, I recommend working with the BOBJ support team to help troubleshoot the issue as there are a lot of things that can be investigated to find the root of the issue.

  • Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine.dll

    Hi there,
    I am going through the process of migrating an existing web solution from Visual Studio 2008 to Visual Studio 2010.
    As part of that I have installed the recently released Crystal Reports for Visual Studio 2010.
    One of our projects has a reference to  'CrystalDecisions.CrystalReports.Engine and everything seems fine within Visual Studio 2010, but when I try to run the solution I get the following error.
    System.BadImageFormatException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine.dll' or one of its dependencies.  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
    I have set up the projects to target .net framework 4 and started by setting them to compile for 32 bit....
    This is quite frustrating so any ideas would be very much appreciated.
    Kind Regards
    Robert

    Hi Don,
    Yes, it is set to the full framework... I am running on a 64 bit Windows 7 machine. 
    One thing I have noticed is that if I try to load the crystal library through Depends (an application that shows the library dependancies), the different libraries that CrystalDecisions.CrystalReports.Engine.dll depend on are listed as 64 bit (on my machine), yet  'CrystalDecisions.CrystalReports.Engine.dll  is a 32 bit library... this is flagged as an error in depends... In fact the first time I ran it it also couldn't find IESHIMS.DLL (because it is not in the PATH) by default.  Anyway, there is no 64 bit CrystalDecisions.CrystalReports.Engine.dll that I can see so I'm a bit confused.  In fact I am a lot confused.
    I have not as yet tried to building a fresh simple test solution with a crystal reference in it..
    Thanks
    Robert

  • CrystalDecisions.CrystalReports.Engine.dll not installed on client

    I developped a small test application in VS 2010 that uses a reportviewer. The report has its own connection to a database and only accepts parameters at startup. When I try to run this program on a client computer, the program fails with an error message that the above mnetioned dll cannot be found. That is correct, as the .dll is not present. On my development computer it is present in the C:\Program Files\SapBusinessObjects\...\dotnet folder. On the client this folder contains just one .dll. I installed .Net 4 on it and I used the 32 bit runtime installer. The client's OS is win 7 starter.
    What is wrong?

    Fairly new to VS 2010.  I have the exact same issues that were described in this discussion. 
    However, I do not understand how to make a deployment project, and I especially don't understand what you included in your deployment project.
    What, exactly, was installed using the deployment project?  Did it have the runtime installer .msi?  The results of the runtime installer?
    Any help would be appreciated.

  • CrystalDecisions.CrystalReports.Engine.ReportDocument - missing ReportOptions properties

    Post Author: N11689
    CA Forum: .NET
    We are using standalone Crystal Reports XI Release 2 with Service Pack 2 to write our reports.  We have created a VB.NET 2005 application that our own software will run to execute the Crystal Reports we have developed.
    One of the options is to allow the user to Preview the report.  We do this using the CrystalReportViewer.
    We have noticed that not all of the ReportOptions from the report, specifically, Create Group Tree, is not available.
    We need this property to conditionally enable the Toggle Group Tree icon in the viewer.  We have 500+ reports that our users can select to print from our software, so we need to conditionally display the group tree based on how the report's Create Group Tree property is set.
    I have two questions:
    1)  Does anyone know how to access the report's Create Group Tree property from withing VB.NET 2005 using the Crystal Reports for .NET assemblies?
    2)  Where do I find the list of Business Object's open issues for the Crystal Reports for .NET assemblies?
    Thank you

    Post Author: N11689
    CA Forum: .NET
    Thank you for confirming that the group tree report option property is not there.
    Do you know where I can go to request an enhancement without having to open a $195.00 incident to tell Business Objects that they have left some functionality out of the Crystal Reports for .NET assemblies?
    Business Objects recommended we move to the .NET assemblies rather than RDC because the RDC has very limited support in the .NET environment.  Sounds like they are phasing it out.  So, we have move to using the .NET assemblies (per their recommendation), but keep coming across situations such as this.
    Thank you.

  • Logon Failed when exporting crystal report to PDF

    Hi, I am Teguh
    i want to ask about error when export crystal report to pdf
    error message
    CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
    [LogOnException: Logon failed.]
       .I(String , EngineExceptionErrorID ) +506
       .D(Int16 , Int32 ) +537
       .C(Int16 ) +10
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +577
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +141
       Falcon.CRTransferSlip.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Falcon\CRTransferSlip.aspx.vb:77
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    environment:
    OS : Windows server 2008 standard SP1
    IIS: Version 7.0
    SQL: Sql server 2000
    VS : Visual studio 2003
    i really confused with this error,
    please help me for this problem
    many thank's

    Hi Ludek
    Thank you for your response. I have installed SP3 and ProcMon and still the same result.
    I applied a filter on ProcMon to filter out items where the path contains 'export'.
    There are a few items where the result is 'NAME NOT FOUND' but I don't think it necessarly had anything to do with the barcode. These include items such as 'EXPORT\MailDestType','EXPORT\DisableExportLiveOfficeSupport'','EXPORT\ExportDirectory' to name a few.
    What drew my attention was the ACCESS DENIED result on specifically the EXPORT\PDF folders. The detail for these are  Desired Access : All access, however the very same entry appears a little futher on as a SUCCESS but this is detailed as Desired Access: Query Value.
    So in summary it looks something like this:
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : ACCESS DENIED
    Desired Access : All Access
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : SUCCESS
    Desired Access : Query Value
    There are a few other entries that follow this pattern that exists in other locations such as HKLM\Software...
    Could this 'ACCESS DENIED' be the problem? and If so how do I, and should I give user XXX this ALL Access its looking for.
    Regards
    Elroy

  • Crystal export to pdf  windows app: logon fails  -- works at other sites

    There must be hundreds of these errors each seems different. 
    I have a program installed on 4 different networks running vb.2008 windows app with the bundled CR.     It works on Vista 64 and windows xp machines.  Uses sql express 2008   The following works on all of them but one  (all installed with same setup disk):  crystal viewer opens with a report. A button is pressed and the report is automatically exported to a folder.  However in this one case all machines at one site fail (vista & xp)  As I mentioned, this  export functionality works on 3 other sites including development site and the reports all come up on all sites.  It is just the export to pdf on all machines on one site. Plus all reports work fine at all sites.  It is just the export to pdf at the one site.   Hee is the error.
    Crystaldecisions.crystalreports.engine.logonexception: logon failed.
    details: mscorlib: could not find file 'c:\windows\temp\inv.xsd'
    error in file c:\document.......
    unable to connect: incorrect log on parameters---> system.runtiem.interopservices.comexception(0x8004100DF) Logon failed.
    Unable to connect: incorrect log on parameters.
    at crystaldecisions.reportappserver.controllers.reportsourceclass.export(exportoptions pexportoptions,requestcontext prequest context)
    at crystaldecisions.reportsource.EromReportSourceBase.exporttostream(exportrequestcontext reqcontext)
    -end of inner exception stack trace
    at crystaldecisions.reportappserver.convertdotnettoerom.throwdotnetexception(exception e)
    at crystaldecisions.reportsource.eromreportsourcebase.exporttostream(exportrequestcontext reqcontext)
    at crystaldecisions.reportsource.eromreportsourcebase.export(exportrequestcontext reqcontext)
    at crystal.crystalreports.engine.formatengine.export()
    at crystaldecisions.crystalreports.engine.reportdocument.export()
    at fioes.frmcrmenulaserreport.exportcompletion()
    The same person set up all 4 networks for whats thats worth.

    reports work fine on all the machines and never had an error. In fact, report is up in  CR viewer when user presses button to export. Error is  on the crrpt.export command
    by the way, actually what happens when the cr.export is executed?  Maybe that may help me.
    Edited by: suzanne haig on Jun 18, 2009 9:27 PM
    One issue that I noticed  is that when there are report parameters defined they need to be in the same   block as the export object setup.  I in fact do have parameters that are given their value from  a dataset.  This is done in the form that shows the crystal viewer, but they are not  in the same procedure  as the export creation and the dataset for the parameters  is not declared on the form level.  However, the report object is declared on the form level as is the datset with the report data, so any property added to it, should be visible throuout the form including where the export occurs.
    However, this would not explain why the same situation works in another location and not just on the developer machine.  I also notice that the error message says it cannot find the xsd file, but it is in the proper location (other wise the report would not be viewable or printable)
    How does the export work, does it create an entire new instance of the report?   perhaps knowing what goes on behind the scenes would help me figure out what to do.
    Edited by: suzanne haig on Jun 18, 2009 11:17 PM

  • Database logon failed error on IIS7

    I am getting a Database logon failed error on a report that is being called in ASP.NET form on IIS7. This error does not happen in my development environment but only on the webserver in IIS7. I can open the report and run it in Crystal Reports designer without any problem. Any help on this will be appreciated. The error message I get is below.
    Report File: LossRunByPolicyNoDates.rpt Report Path: C:\inetpub\wwwroot\adhoc_reports\LossRunByPolicyNoDates.rpt Export Path: C:\inetpub\wwwroot\adhoc_inbox\khogan\RSF500217-09.pdf CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() at adhoc.WebForm1.btnRun_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\adhoc\WebForm1.aspx.vb:line 443

    In addition to the information that Bhushan requested;
    What database?
    How are you connecting to it (ODBC, OLE DB, etc.)?
    I'd also highly recommend having a read of the following:
    What do I need to do to get the fastest issue resolution?
    With he info you provided, you are asking us to guess, which typically proves to be a very inefficient way of troubleshooting any issue...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • "Logon Failed" Exception with CR2008 SP1/SP2 on WIN2008 Server

    Hi,
    we have a problem running our .NET Application on a WIN2008 SP2 server. The code which works fine
    with all VISTA / WIN-XP / WIN7 or WIN 2003 OS. producese an exception when running on WIN2008:
    CrystalDecisions.CrystalReports.Engine.LogOnException: Fehler bei Anmeldung. ---> System.Runtime.InteropServices.COMException (0x80000000):
    Kein Fehler.
       bei CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.VerifyDatabase()
       bei CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.VerifyDatabase()
       bei CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()
       --- Ende der internen Ausnahmestapelüberwachung ---
    The problem is absulutely reproducable and occours with evrey report in rh application.
    The database is SQL2005.
    br
    Axel

    Easiest way to start to troubleshoot this is to install the CR designer on that server - just as a test. Then try to run the report in the designer. Does it work there? The next easiest way to start to troubleshoot this is to create a one line windows app (crystalreportviewer1.reportsource). Let the report prompt for the logon parameters. Does this win app works? In this way you at least start to determine if this is some runtime issue (CR, db client, etc.) or a permission issue.
    Ludek

  • CR2008 rt on IIS 6: COMException (0x8004100f): Database logon failed

    I have installed the CR 2008 runtime msi on IIS6. It's the initial CR 2008 runtime - not sp0.
    Database = MS SQL Server 2000
    Connectivity= OLEDB
    On the first run all the reports run ok.
    If I refresh the page in the browser, all the reports run ok.
    Once the report is displayed, all the reports except one fail when the user clicks on a drill down or changes the zoom.
    Here is the error:
    Database logon failed.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: Database logon failed.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [COMException (0x8004100f): Database logon failed.]
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.FindGroup(FindGroupRequestContext pFindGroupRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.FindGroup(FindGroupContext reqContext) +328
    [LogOnException: Database logon failed.]
       CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +687
       CrystalDecisions.ReportSource.EromReportSourceBase.HandleException(Exception exception) +108
       CrystalDecisions.ReportSource.EromReportSourceBase.FindGroup(FindGroupContext reqContext) +343
       CrystalDecisions.CrystalReports.Engine.FormatEngine.FindGroup(FindGroupContext reqContext) +44
       CrystalDecisions.ReportSource.LocalReportSourceBase.FindGroup(FindGroupContext reqContext) +133
       CrystalDecisions.Web.ReportAgent.FindGroup(Int32[] groupPath) +112
       CrystalDecisions.Web.GroupTree.HandleGroupTreeNavigate(String groupPath, String drillName) +40
       CrystalDecisions.Web.GroupTree.HandlePostBackEvent(JsonObject jsonEventArgs) +70
       CrystalDecisions.Web.ReportAlbum.HandlePostBackEvents(JsonObject jsonEventArgs) +47
       CrystalDecisions.Web.CrystalReportViewer.RaisePostBackEvent(String eventArgument) +449
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
    On a side note: The BusinessObjects logo has been disabled in the aspx script. But the report that runs ok, once it has been zoomed it shows the logo on the second run and in the subsequent runs. It's almost like there is a new aspx session created. The difference between the report that runs an the others is the database connection which is dfined as (local) while for the reports that fail the database connection is defined via the server name.

    I'm not sure why you'd install the "initial CR 2008 runtime - not sp0"? I would highly recommend installing SP 0 which can be downloaded from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100005985842008E/cr120_mm.zip
    MSI is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100005985862008E/cr120_redist_install.zip
    However, there are a lot of assumptions we're making here, the biggest one being that the app works on your development computer and you get the issue once you deploy the runtime(?). Anotehr assumption is that you are working with CR 2008 SP 0 on your dev computer.
    Ludek

Maybe you are looking for