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.

Similar Messages

  • 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

  • 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.

  • '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

  • 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

  • Hi Shanky , pls help out regading Profiler Trace issue ?

    Hi Shanky,
    Pls help out . Regadng Profiler Trace .
    Thanks
    Vijay

    select id,path,status from sys.tarces
    which is given o/p for path "NULL" value
    The NULL path indicates a rowset (Profiler) trace rather than a server-side trace.  The status 1 means the trace is currently running.  You can run sp_who2 to identify the host(s) running the trace.  The Program Name will start with "SQL Server
    Profiler".
    Note that traces are at the server-level rather than the database level from SQL Server perspective.  Each trace may contain filters so that only events for specific databases are included.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Pls help out me to create a report for entry tax

    hi all,
                  pls help out me to create a report for entry tax.
                    and give some logic how i can do this.
    thanks and regards
      vikas

    SELECT < Columns>
    from pay_payroll_actions ppa,
    pay_all_payrolls_f papf,
    per_time_periods ptp
    where papf.payroll_id = ppa.payroll_id
    and ppa.effective_date between papf.effective_start_date and papf.effective_end_date
    and ppa.action_type IN ('Q','R')
    and ptp.payroll_id = papf.payroll_id
    and papf.payroll_name = :pPayrollName
    and ppa.date_earned BETWEEN ptp.start_date AND ptp.end_date
    and :pDate BETWEEN ptp.start_date AND ptp.end_date
    Pass Any Date and Payroll Name. The query should list down all payroll runs in the period in which the date falls.

  • 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

  • Pls help for Exception "Too Few Parameters : Expected 35"

    Hi,
    I am expericing with the exception
    "Too Few Parameters : Expected 35".
    What's wrong with it? The following is my code.
    try {                                                                                                                                                                                                                
    String DRIVER = ("sun.jdbc.odbc.JdbcOdbcDriver");               
    String URL = "jdbc:odbc:Industrial_One_DSN";
    String sql = "UPDATE BusinessRegistration " +
    "SET [Date] = ?, ISIC = ?, BizName = ?, BizAddress = ?, " +
    "OwnerName = ?, OwnerNRC = ?, Investment = ?, EstablishedYear = ?, " +
    "L_Male = ?, L_Female = ?, F_Male = ?, F_Female = ?, " +
    "OwnershipType = ?, Remarks = ?, IndustialZoneName = ?, Unit = ?, " +
    "Fuel = ?, FactoryType = ?, FactoryName = ?, Township = ? " +
    "MainProductName = ?, MainProductCountType = ?, " +
    "MainProductQuantity = ?, MainProductValue = ?, RMName = ?, " +
    "RMCountType = ?, RMQuantity = ?, RMValue = ?, EnergyName = ?, " +
    "MachinePower = ?, AmountGallon = ?, StateDiv = ?, BizSize = ?  " +
    "WHERE RegistrationID = ?";
    Class.forName(DRIVER);
    Connection con = DriverManager.getConnection(URL);
    PreparedStatement pstmt = con.prepareStatement(sql);
    int ilmale = Integer.parseInt(lmale);
    int ilfemale = Integer.parseInt(lfemale);
    int ifmale = Integer.parseInt(fmale);
    int iffemale = Integer.parseInt(ffemale);
    int impq = Integer.parseInt(mpq);
    int impv = Integer.parseInt(mpv);
    int irmq = Integer.parseInt(rmq);
    int irmv = Integer.parseInt(rmv);
    int iamountgallon = Integer.parseInt(amountgallon);
    pstmt.setString(1, date);
    pstmt.setString(2, isic);
    pstmt.setString(3, bizname);
    pstmt.setString(4, bizaddress);
    pstmt.setString(5, ownername);
    pstmt.setString(6, ownernrc);
    pstmt.setString(7, investment);
    pstmt.setString(8, eyear);
    pstmt.setInt(9, ilmale);
    pstmt.setInt(10, ilfemale);
    pstmt.setInt(11, ifmale);
    pstmt.setInt(12, iffemale);
    pstmt.setString(13, ownershiptype);
    pstmt.setString(14, remark);
    pstmt.setString(15, izn);
    pstmt.setString(16, unit);
    pstmt.setString(17, fuel);
    pstmt.setString(18, ft);
    pstmt.setString(19, fname);
    pstmt.setString(20, township);
    pstmt.setString(21, mpn);
    pstmt.setString(22, mpct);
    pstmt.setInt(23, impq);               
    pstmt.setInt(24, impv);
    pstmt.setString(25, rmname);
    pstmt.setString(26, rmct);
    pstmt.setInt(27, irmq);
    pstmt.setInt(28, irmv);
    pstmt.setString(29, ename);
    pstmt.setString(30, mpower);
    pstmt.setInt(31, iamountgallon);
    pstmt.setString(32, statediv);
    pstmt.setString(33, bizsize);
    pstmt.setInt(34, Integer.parseInt(rid));
    pstmt.executeUpdate();
    }I have got 35 fields in my db. But I wanna edit 34 fields only. I have no primary key in my table. Is't alright?
    pls help me.
    With thanks,
    WTDAHL

    I presume you are using SQL server, hence the [Date] in your SQL?
    I counted 34 question marks in your SQL statement, And 34 parameters supplied.
    Looks ok to me.
    You say you have no primary key? What is RegistrationId then?
    My suggestion for debugging: start smaller.
    Try updating it with only 5 fields, then 10 then 15 and build it up like that.
    Trying to debug 35 fields is a nightmare - you have to break it down to solve it.
    Good luck,
    evnafets

  • Pls help: Io exception: Connection refused

    My application was running fine and one days i got this error
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=168821248)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
    I am using a remote oracle server in my application .....the service provider is saying that every thing is ok and he didn't know wht is wrong in my schema object.....
    the method of connetion is
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
                             connect = DriverManager.getConnection("jdbc:oracle:thin:@//host_ip/orcl.oracle.com%","user","password");
    // @machineName:port:SID, userid, password
    I am struck now and i have no idea wht to do now and wht should i ask to my service provider to do.....
    pls help

    The error 12514 means 'TNS:listener could not resolve SERVICE_NAME given in connect descriptor'. In your connect string what is the service_name?
    The format for a connect string is :
    ("jdbc:oracle:thin:@myhost:<PORT>:<SERVICE_NAME>","<USERNAME>", "<PASSWORD>");

  • 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.

  • 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.

  • Whatsapp Problem someone pls help out

    Initially my whatsapp went into optimizing by itself and its taking too long and there was no percentage indicating anything. so I back up my whatsapp to my computer manually but did not back up through icloud. Now restoring back is taking too long and its from icloud. will my data still be there ? its my iphone 4

    you are setting port no to 0, but then you are not
    changing it, and then you are checking to see if it is
    0, which it must be! By the way, why are you not just
    using JDBC native connection, rather than JDBC:ODBC
    bridge?Well, that's not the problem.. I'm going to get the port no etc. later..I've just hardcoded the values currently. After 8 hrs, I finally figured out what the problem is.. "my bean is not remembering the resultset inspite of setting the scope to session."
    Anyways, thanks for your reply!!
    As for your question on JDBC Native driver, I'm using DB2 as my Database and Tomcat server. So I thought I needed to use JDBC:ODBC driver. (Atleast the book says so.. I don't know.. I'm still familiarizing myself with all these)
    Now can you tell me how I can save the resultset value got from the bean to retrieve it later from a JSP? I would really appreciate any input w.r.t. Bean Sessions. I'm not clear about this still. What are the values that a bean can store? If I need the resultset later, how can I retrieve it?
    -NJU

Maybe you are looking for

  • Data getting added in DSO

    Hi , I am having DSO in which data is coming from cube .In transformation ( Cube --> DSO )  Rule Type EQ "Direct Assignment  & Aggregation EQ 'Overwite'  & there is no Start & End routine present . Cube Data Planning Area  Plant   Country Customer Gr

  • How do I place pictures into photo stream ?

    How do I place pictures into photo stream? (5s)

  • Trigger on a materialized view

    i have a materialized view on a prebuilt table.. is it possible to write after triggers on the table? regards raj

  • Jabber Screen share grayed out - SOLVED

    Community, I need your help! I don't know where else to look. I have in production CUCM (9.1.2.10000-28) and CUPS (9.1.1.31900-1) and I want to solve a few misbehaviors on CUPS. Everything works without problems; except for the screen share, which wo

  • Sample FI Report

    Hi Can any one post sample FI Customised report to test it on my system Regards Nanda