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

Similar Messages

  • I can't down load itunes. I get an error message, NTVDM has encountered a System Error The handle is invalid.

    16 bit MS-DOS Subsystem
    C:\WINDOWS\system32\msiexec.ex NTVDM has encountered a System Error The handle is invalid.
    Choose 'Close' to terminate tha application.
    Close   Ignore

    Okay. It seems unlikely to be the class of similar problems caused by various Symantec programs blocking installs.
    It's a bit of a mystery in the first place why the 16 bit DOS subsystem is running in this context. (The iTunes installer is 32-bit on XP machines.)
    Just in case it's a damaged NTVDM, perhaps try an sfc /scannow:
    http://www.updatexp.com/scannow-sfc.html
    Does that clear up the error?

  • Data Collection Set 'Server Activity' Failure Waiting on a kernel object(s) failed. Inner Error ------------------ The handle is invalid.

    All of the system data collection sets have been running for 6+ months without any issues, couple of weeks ago the 'Server Activity' collection set failed to restart after a planned maintenance server reboot.
    When attempting to manually start the collection set it indicates "success", but after refreshing the collection set it showing as stopped. Viewing the logs for the Data Collection (Server Activity) I am getting the message:
    Waiting on a kernel object(s) failed. Inner Error ------------------>
    The handle is invalid.
    After some research into this really unhelpful message I came across one posting where this error has been found to occur in SP1. We are running SP2 which include the fix so this shouldn't be the problem (ref http://connect.microsoft.com/SQLServer/feedback/details/585210/sql-server-2008-data-collection-execmasterpackage-timeout).
    To see more detail on the root cause of the error I enabled the additional tracing for data collection (http://blogs.msdn.com/b/sqlagent/archive/2011/07/13/enabling-additional-tracing-for-data-collector.aspx). This provided an exception stack which indicated
    that the issue was thrown to what looks like an existing file, referring to a location (e:\) which doesn't exist in our system.
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::    wmain _IN
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::    Command line: dcexec -c -s 2 -i "S160OLTP\OLTP" -m 0 -e 0x09C1635DD4C4C6478A145D679AFE718F_1_STOP
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Application::Init _IN
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Console code page (m_codePage): 437
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::      Application::ParseCommandLine _IN
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::      Application::ParseCommandLine _OUT:00000000
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Application::Init _OUT:00000000
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Application::Main _IN
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Started continuous mode collection on thread 12036
    DCEXEC!26d0!2f04!2012/11/28!11:17:25::      StartCachedCollectionWrapper _IN
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::      Waiting for collection to exit or stop event to be signaled
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::       StartCollection _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::       StartCollection(iSetId = 2, iCollectionMode = 0, pwszInstanceName = S160OLTP\OLTP)
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::        CDataCollectorController::ExecuteCollectionSet _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::        SQL Instance Name: OLTP
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::         CDataCollectorController::TryExecuteCollectionSetOnce _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CDataCollectorController::Initialize _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CDataCollectorController::Initialize _OUT:00000000
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CDataCollectorController::PopulateCollectorPackageParameters _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CacheWindow=1, CacheDirectory='I:\MSSQL10.OLTP\MSSQL\dccache'
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CDataCollectorController::PopulateCollectorPackageParameters _OUT:00000000
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CDataCollectorController::PopulateSetPackageParameters _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CollectionSetUID='{49268954-4FD4-4EB6-AA04-CD59D9BB5714}', ExecutionMode=0, IsSystem=-1, LoggingLevel=0, DaysUntilExpiration=14, ExitEventName=''
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CDataCollectorController::PopulateSetPackageParameters _OUT:00000000
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CreateControlEvents _IN
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25:: e        ERROR: Win32 Error: GetLastError=183, retCode=0x4, function CDataCollectorController::CreateControlEvents, line 470, file e:\sql10_katmai_t\sql\mpu\shared\dc\runtime\controller\src\datacollectorcontroller.cpp
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25:: e        ERROR: Failed to create kernel event for collection set: {49268954-4FD4-4EB6-AA04-CD59D9BB5714}. Inner Error ------------------>
    Cannot create a file when that file already exists.
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::          CreateControlEvents _OUT:00000000
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25:: e       ERROR: DC_FAILED: function CDataCollectorController::TryExecuteCollectionSetOnce, line 350, file e:\sql10_katmai_t\sql\mpu\shared\dc\runtime\controller\src\datacollectorcontroller.cpp
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::         CDataCollectorController::TryExecuteCollectionSetOnce _OUT:0x000004
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::        Collection set execution failed, retrying in 5 seconds...
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::        Waiting for exit event or retry timer failed.
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25:: e      ERROR: Win32 Error: GetLastError=6, retCode=0x4, function CDataCollectorController::ExecuteCollectionSet, line 278, file e:\sql10_katmai_t\sql\mpu\shared\dc\runtime\controller\src\datacollectorcontroller.cpp
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25:: e      ERROR: Waiting on a kernel object(s) failed. Inner Error ------------------>
    The handle is invalid.
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::        CDataCollectorController::ExecuteCollectionSet _OUT:0x000004
    DataCollectorController!26d0!2f04!2012/11/28!11:17:25::       StartCollection _OUT:00000000
    DCEXEC!26d0!2f04!2012/11/28!11:17:25::      StartCachedCollectionWrapper _OUT:0x000004
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Collection thread returned (00000001)
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Waiting for collection thread to exit
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Collection thread signaled
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::     Application::Main _OUT
    DCEXEC!26d0!1b88!2012/11/28!11:17:25::    wmain _OUT:0x000004
    I am now stumped as I haven't found anyone else experiencing this issue.
    Any ideas, please help??

    Thanks for the pointer Eileen, problem solved.
    Can't believe I missed it, but after reading the last section on system hangs it occurred to me that I hadn't checked that all dcexec.exe processes were killed when I disable the data collection service.
    For anyone else experiencing this issue I identified the dcexec.exe processes using the following in cmd line:
    TASKLIST /SVC /FI "IMAGENAME EQ DCEXEC.EXE"
    On the default setup of the data collection there should be two dcexec.exe processes constantly running, one for "Server Activity" and another for "Query Statistics". On our server there were five running with the data collection disabled.
    After killing all of the processes and restarting the data collection problem solved!!
    Still need to understand why the processes didn't shut down cleanly when the server was restarted, but at least I know where to look now.

  • Crystal report error (The table '' could not be found)

    Dear Expert,
    As I know, the end user who don't want to edit the crystal report design no need to buy crystal report,right?
    Using the 'Crystal reports for SAP B1', they already view the report.
    But, how about, if I had created one crystal report, and then I want to distribute to end user. When I load the report on user machine that dont have crystal report, the system shown an error (The table '' could not be found).
    I think, maybe because of the database location. When I create the report, of course I made connection to my machine as a source of database location. But, how i'm going to change the database location to user machine?
    Is it when we login into SAP, did SAP auto detect the new location source? And will auto create connection to the crystal report?
    Thanks in advance for any help.

    Hi ,
    We do not create the database connection for the end user. the end user must have the same database connection as it is set up on your machine. The report is looking for the same connection, with the same access into the database.
    Best regards,
    Jadie

  • Crystal Report error - "the group section cannot be printed..."

    Hello to everyone.
    I have a CR report based on a database view.
    Everything is ok when i run the report in the CR designer but choosing the option to preview the report or run it from the SAP Business One (8.81 PL 08) i get an error:
    "the group section cannot be printed because its condition field is nonexistent or invalid. Format the section to choose another condition field. Error in file "the Report name".rpt. Invalid group condition".
    i must say that this happens in all my reports where i have group data. Also i must say that all those reports were ok some days before...
    Is there a way for me to know what field is it refering to?
    I have verified the DB and it is pointing correctly and the also the View returns data.
    Thanks in advance

    Hello Gordon,
    thanks for your response. the reports were working fine until 8.81 PL05
    We have upgraded the customer from PL05 - > PL08 a week ago.
    Do you think that maybe this is the problem?
    Thanks in advance

  • 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 "The requtest could not be submitted for backgroung p"

    Our Web applciation is using ASP.Net Framework 2.0 and Crysal Report Assembly version is 10.2.3600.0
    After fetching one particular report we are getting below error
    "Error in file c:\windows\temp\FileName{1B044BEA-1C14-44DF-92DC-107455F949FD}.RPT
    The requtest could not be submitted for backgroung processing."
    There is no problem while fetching data from backend procedure. It runs without error.
    Is there any hot fix for the same?

    We too are facing same challange with CrystalReports Version=10.2.3600.0
    Can some body post resolution.
    Thanks in advance.
    -Murali

  • The handle is invalid error exception when screenshoot from screen why and how to solve

    Hi guys i have problem when i take screen shoot from screen it give me exception
    error the handle is invalid as following
    ee the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.ComponentModel.Win32Exception: The handle is invalid
       at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
       at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize)
       at Sales.Form1.timer4_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    this is my code as following :
    under timer tick event problem happen in screen shoot
    the proplem in these lines
    Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
    Graphics graphics = Graphics.FromImage(bitmap as Image);
    graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size);
    bitmap.Save("C:\\screenshot.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
    if i put these lines under button event work ok
    but if i but these lines under timer make problem and give me exception above why
    this code of screenshoot work in my windows xp but when i put in windows server 2003 it give me error in screenshoot under timer event
    private void timer4_Tick(object sender, EventArgs e)
    Sales.SalesClass SalesClass1 = new Sales.SalesClass();
    if (SalesClass1.IsStartValid("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123"))
    issent = 1;
    label7.Text = issent.ToString();
    else
    issent = 0;
    label7.Text = issent.ToString();
    if (Convert.ToInt32(label3.Text) > 0 && Convert.ToInt32(label2.Text) > Convert.ToInt32(label3.Text) &&Convert.ToInt32(label7.Text) == 0)
    Sales.SalesClass SalesClass2 = new Sales.SalesClass();
    SalesClass2.InsertShipment("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123", Convert.ToInt32(label3.Text), Convert.ToInt32(label2.Text));
    Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
    Graphics graphics = Graphics.FromImage(bitmap as Image);
    graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size);
    bitmap.Save("C:\\screenshot.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
    string smtpAddress = "smtp.mail.yahoo.com";
    int portNumber = 587;
    bool enableSSL = true;
    string emailFrom = "[email protected]";
    string password = "3444";
    string emailTo = "[email protected]";
    string subject = "Working Start"+label6.Text;
    string body =
    "Quantity Required" + "" + "(" + label2.Text + ")" + "/" +
    "Quantity Shipped" + "/" + "(" + label3.Text + ")" + "/" +
    "Quantity Remaining" + "/" + "(" + label4.Text + ")";
    using (MailMessage mail = new MailMessage())
    mail.From = new MailAddress(emailFrom);
    mail.To.Add(emailTo);
    mail.Subject = subject;
    mail.Body = body;
    mail.IsBodyHtml = true;
    mail.Attachments.Add(new Attachment("c:\\screenshot.jpeg"));
    System.Net.Mail.SmtpClient shggmtp = new SmtpClient(smtpAddress, portNumber);
    smtp.Credentials = new NetworkCredential(emailFrom, password);
    smtp.EnableSsl = enableSSL;
    smtp.Send(mail);

    Thank you for reply
    timer3 tick event and enabled to maximize the form if minimized
    this is all my code as following
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.Net.Mail;
    using System.Net;
    using System.IO;
    using System.Data.SqlTypes;
    using System.Data.SqlClient;
    using System.Runtime.InteropServices;
    using System.Diagnostics;
    using Microsoft.Win32;
    namespace Sales
    public partial class Form1 : Form
    RegistryKey reg = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
    public int issent;
    public int isfinish;
    public Form1()
    reg.SetValue("Sales", Application.ExecutablePath.ToString());
    InitializeComponent();
    private const int SW_HIDE = 0;
    private const int SW_SHOWNORMAL = 1;
    private const int SW_SHOWMINIMIZED = 2;
    private const int SW_SHOWMAXIMIZED = 3;
    private const int SW_SHOWNOACTIVATE = 4;
    private const int SW_RESTORE = 9;
    private const int SW_SHOWDEFAULT = 10;
    [DllImport("user32.dll")]
    private static extern int ShowWindow(int hwnd, int nCmdShow);
    private void Form1_Load(object sender, EventArgs e)
    label8.Visible = false;
    label9.Visible = false;
    label10.Visible = false;
    label2.Visible = false;
    label3.Visible = false;
    label7.Visible = false;
    label8.Visible = false;
    label1.Visible = false;
    label2.Visible = false;
    label3.Visible = false;
    label4.Visible = false;
    Sales.SalesClass SalesClass4 = new Sales.SalesClass();
    string EndQuantity = SalesClass4.MaxEndQuantity("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    string TotalQuantity = SalesClass4.MaxTotalQuantity("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    label9.Text = EndQuantity;
    label10.Text = TotalQuantity;
    if (SalesClass4.IsStartValid("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123"))
    issent = 1;
    label7.Text = issent.ToString();
    else
    issent = 0;
    label7.Text = issent.ToString();
    label6.Text = DateTime.Now.ToString("dd/MM/yyyy");
    timer1.Start();
    Sales.SalesClass SalesClass1 = new Sales.SalesClass();
    DataTable dt = SalesClass1.ShowSalesData("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    label1.Visible = false;
    dataGridView1.DataSource = dt;
    dataGridView1[0, dataGridView1.Rows.Count - 1].Value = "Total Sum";
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0].Style.BackColor = Color.Yellow;
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[1].Style.ForeColor = Color.Red;
    dataGridView1.Refresh();
    Sales.SalesClass SalesClass5 = new Sales.SalesClass();
    if (SalesClass5.IsFinishValid("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123", Convert.ToInt32(label3.Text), Convert.ToInt32(label2.Text)))
    isfinish = 1;
    label8.Text = isfinish.ToString();
    else
    isfinish = 0;
    label8.Text = isfinish.ToString();
    label11.Text = SalesClass5.MaxID1("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    private void timer1_Tick(object sender, EventArgs e)
    label6.Text = DateTime.Now.ToString("dd/MM/yyyy");
    Sales.SalesClass SalesClass1 = new Sales.SalesClass();
    DataTable dt = SalesClass1.ShowSalesData("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    label1.Visible = false;
    dataGridView1.DataSource = dt;
    dataGridView1[0, dataGridView1.Rows.Count - 1].Value = "Total Sum";
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0].Style.BackColor = Color.Yellow;
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[1].Style.ForeColor = Color.Red;
    dataGridView1.Refresh();
    private void dataGridView1_DataSourceChanged(object sender, EventArgs e)
    double Total = 0;
    double Total1 = 0;
    double Total2 = 0;
    for (int i = 0; i < dataGridView1.Rows.Count - 1; i++)
    Total += Convert.ToDouble(dataGridView1.Rows[i].Cells[6].Value);
    Total1 += Convert.ToDouble(dataGridView1.Rows[i].Cells[7].Value);
    Total2 += Convert.ToDouble(dataGridView1.Rows[i].Cells[8].Value);
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[6].Value = Total;
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[7].Value = Total1;
    dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[8].Value = Total2;
    label2.Text = Total.ToString();
    label3.Text = Total1.ToString();
    label4.Text = Total2.ToString();
    private void timer2_Tick(object sender, EventArgs e)
    Sales.SalesClass SalesClass1 = new Sales.SalesClass();
    string ID = SalesClass1.MaxID("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    string EndQuantity = SalesClass1.MaxEndQuantity("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    string TotalQuantity = SalesClass1.MaxTotalQuantity("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");
    label9.Text = EndQuantity;
    label10.Text = TotalQuantity;
    label11.Text = ID;
    if (SalesClass1.IsFinishValid("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123", Convert.ToInt32(label3.Text), Convert.ToInt32(label2.Text)))
    isfinish = 1;
    label8.Text = isfinish.ToString();
    else
    isfinish = 0;
    label8.Text = isfinish.ToString();
    if (Convert.ToInt32(label2.Text) == Convert.ToInt32(label3.Text) && Convert.ToInt32(label8.Text) == 0 && Convert.ToInt32(label2.Text) > 0 && Convert.ToInt32(label3.Text) > 0)
    Sales.SalesClass SalesClass2 = new Sales.SalesClass();
    SalesClass2.InsertLastShipment("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123", Convert.ToInt32(label3.Text), Convert.ToInt32(label2.Text), Convert.ToInt32(label11.Text));
    Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
    Graphics graphics = Graphics.FromImage(bitmap as Image);
    graphics.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y,
    0, 0, Screen.PrimaryScreen.Bounds.Size,System.Drawing.CopyPixelOperation.SourceCopy);
    bitmap.Save("C:\\screenshot.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
    string smtpAddress = "smtp.mail.yahoo.com";
    int portNumber = 587;
    bool enableSSL = true;
    string emailFrom = "[email protected]";
    string password = "2234";
    string emailTo = "[email protected]";
    string subject = "Working Finish" + label6.Text;
    string body = "Summary for Date" + "" + label6.Text + "" +
    "Quantity Required" + "" + "(" + label2.Text + ")" + "/" +
    "Quantity Shipped" + "/" + "(" + label3.Text + ")" + "/" +
    "Quantity Remaining" + "/" + "(" + label4.Text + ")";
    using (MailMessage mail = new MailMessage())
    mail.From = new MailAddress(emailFrom);
    mail.To.Add(emailTo);
    mail.Subject = subject;
    mail.Body = body;
    mail.IsBodyHtml = true;
    mail.Attachments.Add(new Attachment("C:\\temp2.gif"));
    System.Net.Mail.SmtpClient smtp = new SmtpClient(smtpAddress, portNumber);
    smtp.Credentials = new NetworkCredential(emailFrom, password);
    smtp.EnableSsl = enableSSL;
    smtp.Send(mail);
    private void timer3_Tick(object sender, EventArgs e)
    int hWnd;
    Process[] processRunning = Process.GetProcesses();
    foreach (Process pr in processRunning)
    if (pr.ProcessName == "Sales.vshost")
    hWnd = pr.MainWindowHandle.ToInt32();
    ShowWindow(hWnd, SW_SHOWMAXIMIZED);
    private void timer4_Tick(object sender, EventArgs e)
    Sales.SalesClass SalesClass1 = new Sales.SalesClass();
    if (SalesClass1.IsStartValid("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123"))
    issent = 1;
    label7.Text = issent.ToString();
    else
    issent = 0;
    label7.Text = issent.ToString();
    if (Convert.ToInt32(label3.Text) > 0 && Convert.ToInt32(label2.Text) > Convert.ToInt32(label3.Text) && Convert.ToInt32(label7.Text) == 0)
    Sales.SalesClass SalesClass2 = new Sales.SalesClass();
    SalesClass2.InsertShipment("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123", Convert.ToInt32(label3.Text), Convert.ToInt32(label2.Text));
    Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
    Graphics graphics = Graphics.FromImage(bitmap as Image);
    graphics.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y,
    0, 0, Screen.PrimaryScreen.Bounds.Size,System.Drawing.CopyPixelOperation.SourceCopy);
    bitmap.Save("C:\\screenshot.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
    string smtpAddress = "smtp.mail.yahoo.com";
    int portNumber = 587;
    bool enableSSL = true;
    string emailFrom = "[email protected]";
    string password = "2234";
    string emailTo = "[email protected]";
    string subject = "Working Start" + label6.Text;
    string body =
    "Quantity Required" + "" + "(" + label2.Text + ")" + "/" +
    "Quantity Shipped" + "/" + "(" + label3.Text + ")" + "/" +
    "Quantity Remaining" + "/" + "(" + label4.Text + ")";
    using (MailMessage mail = new MailMessage())
    mail.From = new MailAddress(emailFrom);
    mail.To.Add(emailTo);
    mail.Subject = subject;
    mail.Body = body;
    mail.IsBodyHtml = true;
    mail.Attachments.Add(new Attachment("c:\\screenshot.jpeg"));
    System.Net.Mail.SmtpClient smtp = new SmtpClient(smtpAddress, portNumber);
    smtp.Credentials = new NetworkCredential(emailFrom, password);
    smtp.EnableSsl = enableSSL;
    smtp.Send(mail);
    private void timer5_Tick(object sender, EventArgs e)
    if (Convert.ToInt32(label3.Text) == 0 && Convert.ToInt32(label4.Text) == 0)
    Sales.SalesClass SalesClass2 = new Sales.SalesClass();
    SalesClass2.DeleteProcesses("Data Source=192.168.1.5;Initial Catalog=Altawi-last06-01-2015;User ID=admin;Password=123");

  • When trying to install Firefox 4.1 (Update) I get the following message: 'The handle is invalid'

    I downloaded Firefox 4.01 directly from Firefox. When running the Firefox Setup I get the following error: 'The handle is invalid'.
    I am trying to run it on: TOSHIBA, Windows Vista, Home Premium, Service Pack 1.

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START/CONTROL PANEL/Programs n Features/highlight ASU and click REPAIR,

  • Windows Error: 0x80070006 - The handle is invalid

    Hi community
    I set up a new App-V server App-V 5.0 SP1 including
    Management, Publishing and Reporting Server. Additionally I installed HF04
    (KB2940354) on it.
    I published an App-V package for Domain Computers.
    On the other side I've a RDS App-V Client with
    App-V 5.0 SP2 incl. HF02 (KB2934349). The RDS Client is configured via GPO and I verified that the settings are now correct.
    If I try to synchronize from RDS Client manually I get following output in Power Shell:
    PS C:\Users\<username>> Sync-AppvPublishingServer
    cmdlet Sync-AppvPublishingServer at command pipeline position 1
    Supply values for the following parameters:
    ServerId: 1
    Sync-AppvPublishingServer : Application Virtualization Service failed to complete requested operation.
    Operation attempted: RefreshPublishingServer.
    Windows Error: 0x80070006 - The handle is invalid
    Error module: Publishing. Internal error detail: 45500D2780070006.
    Please consult AppV Client Event Log for more details.
    At line:1 char:1
    + Sync-AppvPublishingServer
    + ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidResult: (:) [Sync-AppvPublishingServer], ClientException
        + FullyQualifiedErrorId : RefreshPublishingServerError,Microsoft.AppV.AppvClientPowerShell.SyncAppvPublishingServer
    In App-V Eventlog on the RDS Client there are 2 Events resulting my manual action:
    1. Event ID 19203
    HttpRequest sendRequest failed.
    URL: http://<URL>:82 /
    Error code: 0x45500D27 - 0x80070006
    2. Event ID 10102
    Getting server publishing data failed.
    URL: http://<URL>:82 /
    Error code: 0x45500D27 - 0x8007000
    Who can help me out here?

    Hi Steve
    Meanwhile I found out that everything runs fine if I implement App-V Client settings manually on the RDS Client instead of populating with GPO. I use the same GPO settings like in our development environment where everything runs good.
    Here the desired output (anonymized):
    PS C:\Users\<user>> Get-AppvPublishingServer
    Id                     
    : 1
    SetByGroupPolicy        : True
    Name                   
    : <Name>
    URL                    
    : http://<FQDN>:82
    GlobalRefreshEnabled    : True
    GlobalRefreshOnLogon    : True
    GlobalRefreshInterval   : 1
    GlobalRefreshIntervalUnit                          
    : Hour
    UserRefreshEnabled      : False
    UserRefreshOnLogon      : False
    UserRefreshInterval     : 1
    UserRefreshIntervalUnit : Hour
    PS C:\Users\<user>> Get-AppvClientConfiguration
    Name                   
    Value                      
    SetByGroupPolicy
    PackageInstallationRoot D:\App-V\InstallationRoot  
    True
    PackageSourceRoot       False
    LocationProvider        False
    AutoLoad               
    2                          
    True
    EnablePackageScripts    1                          
    True
    ReestablishmentInterval 5                          
    False
    ReestablishmentRetries  3                          
    False
    CertFilterForClientSsl  LOCAL_MACHINE\MY\1.3.6.1.5.5.7.3.2 
    False
    VerifyCertificateRevocationList                    
    1 False
    SharedContentStoreMode  0                          
    False
    MigrationMode          
    0                          
    False
    RoamingFileExclusions   False
    RoamingRegistryExclusions                          
    SOFTWARE\CLASSES    False
    AllowHighCostLaunch     0                          
    False
    PackageStoreAccessControl                          
    0 False
    IntegrationRootUser     %localappdata%\Microsoft\AppV\Client...  
    True
    IntegrationRootGlobal   D:\App-V\RootGlobal        
    True
    VirtualizableExtensions exe,com,bat,cmd,vbs,ps1,cpl,jar,wsf,...  
    False
    IgnoreLocationProvider  0                          
    False
    ReportingEnabled        0                          
    False
    ReportingStartTime      False
    ReportingRandomDelay    False
    ReportingInterval       False
    ReportingServerURL      False
    ReportingDataCacheLimit False
    ReportingDataBlockSize  False
    ExperienceImprovementOptIn                         
    0 True
    EnablePublishingRefreshUI                          
    0 False
    ProcessesUsingVirtualComponents                    
    {%SystemRoot%\explorer.exe, %Program...                       
    False
    EnableDynamicVirtualization                        
    1 False

  • The migrated Crystal Report throws "The database logon information for this report is either incomplete or incorrect" error

    [ENVIRONMENT]
    Product version - BI4.1 SP03
    OS - Windows 2008 R2
    CMS Database - Oracle 11g
    Java Application Server - Tomcat7
    [ISSUE]
    Using the Upgrade Management Tool to completely migrate a BOXI3.1 SP3+FP3.6 to BI4.1 SP03.  The reporting database from both BOXI3.1 and BI4.1 are the same and so is the database logon credential.
    When viewing and refresh a migrated Crystal Report, it throws "The viewer could not process an event. The database logon information for this report is either incomplete or incorrect. [] ---- Error code:0 [CRWEB00000119]" error in both BI Launchpad and "The database logon information for this report is either incomplete or incorrect" in scheduled job.
    [STEPS TAKEN]
    - Update the Database Configuration with the SAME Oracle database password in CMC and "The database logon information for this report is either incomplete or incorrect" issue goes away.
    I search the SAP SMP and SCN forum and found no reference on this UMT and Crystal Report database logon problem.  Hope any of you have seen this problem and share if there is an ADAPT for it.
    Thank you in advance,
    Jin-Chong

    Hi,
    The BI4.1 SP03 server and client and Crystal Report 2013 SP03 developer and Crystal Report for Enterprise 4.1 SP03 are all installed onto this Windows 2008 R2 server.
    I am able to open the migrated report from CMS repository in Crystal Report 2013 SP03 developer and am able to refresh it with database logon password provided.  After save it back to the Enterprise, the database logon password field for this report in CMC becomes empty so that I have to enter the database password and choose "Use same database logon as when report is run" when viewing and scheduling report.
    What is interesting to me is that the UMT seems to migrate the report along the database logon password because I can see the encrypted password in the report database logon property in CMC.  The workaround is to reenter the database logon password in the report database logon property in CMC.
    With this said, there are hundreds of the Crystal reports and the workaround would consume lots of manual work by update each report's database logon password in CMC.
    For other customers who have more crystal reports, I wonder if there is an automated way to update the crystal report's database logon password on BI4.1 or if this is an isolated incident on my new BI4.1 SP03 environment.
    I run UMT in command line to perform livetolive migration, and my steps are listed below
    cd "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\apps\upgradeManagementTool\jars\"
    "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\bin\javaw.exe" -Xmx56g -Djava.library.path="..\..\..\..\win64_x64" -jar upgrademanagementtool.jar -internal_use_only_noversioncheck -responsefile LIVETOLIVEResponseFile.txt
    LIVETOLIVEResponseFile.txt:
    mode=livetolive
    source=edhc01nwapp65:6400
    sourceusername=Administrator
    sourcepassword=xxxxxxxxxx
    destination=WAPP246N:6400
    destinationusername=Administrator
    destinationpassword=xxxxxxxxxx
    logfile=E:\temp\livetolive.csv
    configparam:base_url=https://boprod.bsc.bscal.com/dswsbobje
    locale=en_US
    Regards,
    Jin-Chong

  • "The handle is invalid" error installing biztalk 2013 HL7 accelerator

    I have installed Biztalk Server 2013 on a Windows Server 2008 R2 SP1 machine and Sql Server 2008 R2 SP1 but when i try to install the HL7 accelerator it fails with the error message "The
    specified account "Domain\AccountName" is invalid. Error code: The handle is invalid."
    I already followed the steps in http://blogs.msdn.com/b/mandi/archive/2014/06/22/quot-the-handle-is-invalid-quot-error-installing-hl7.aspx but
    the error remains.
    what could be the problem?
    Thanks

    Guys,
    we just got the BizTalk 2010 HL7 accelerator installed yesterday on two servers. We had to uninstall several Windows updates. We tried to pinpoint which updates are causing the problem, but were unable to narrow the list much. Along with the original 5 mentioned
    earlier in the post here is a list of the other unpdates we uninstalled. All of these are very recent updates. It's a bit long, but it worked. Uninstalling these also worked for a friend of mine at another company this week.
    KB2973351
    KB2973201
    KB2962872
    KB2961072
    KB2871997
    KB2982378
    KB3000869
    KB2991963
    KB3005607
    KB3006226
    KB3010788
    KB3011780
    KB2979570
    KB2840631
    KB2978120
    KB3003743
    KB2972100
    KB2861191
    KB2832414
    KB2861698
    KB2973112
    KB2992611
    KB3000061
    KB2987107
    KB2984976
    KB2984972
    KB2977292
    KB2968294
    KB2937610
    KB289484v2
    KB2943357
    KB2993958
    KB3002885
    KB3003057
    KB953196

  • 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

  • Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason: The handle is invalid.

    I'm stuck here trying to figure this error out.  
    2003 domain, 2012 hyper v core 3 nodes.  (I have two of these hyper V groups, hvclust2012 is the problem group, hvclust2008 is okay)
    In Failover Cluster Manager I see these errors, "Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason:  The handle is invalid."
    I restarted the host node that was listed in having the error then another node starts showing the errors.
    I tried to follow this site:  http://blog.subvertallmedia.com/2012/12/06/repairing-a-failover-cluster-in-windows-server-2012-live-migration-fails-dns-cluster-name-errors/
    Then this error shows up when doing the repair:  there was an error repairing the active directory object for 'Cluster Name'
    I looked at our domain controller and noticed I don't have access to local users and groups.  I can access our other hvclust2008 (both clusters are same version 2012).
    <image here>
    I came upon this thread:  http://social.technet.microsoft.com/Forums/en-US/85fc2ad5-b0c0-41f0-900e-df1db8625445/windows-2012-cluster-resource-name-fails-dns-registration-evt-1196?forum=winserverClustering
    Now, I'm stuck on adding a managed service account (mas).  I'm not sure if I'm way off track to fix this.  Any advice?  Thanks in advance!
    <image here>

    Thanks Elton,
    I restarted 3 hosts after applying the hotfix.  Then I did the steps below and got stuck on step 5.  That is when I get the error (image above).  There
    was an error repairing the active directory object for 'Cluster Name'.  For more data, see 'Information Details'.
    To reset the password on the affected name resource, perform the following steps:
    From Failover Cluster Manager, locate the name resource.
    Right-click on the resource, and click Properties.
    On the Policies tab, select If resource fails, do not restart, and then click OK.
    Right-click on the resource, click More Actions, and then click Simulate Failure.
    When the name resource shows "Failed," right-click on the resource, click More Actions, and then click Repair.
    After the name resource is online, right-click on the resource, and then click Properties.
    On the Policies tab, select If resource fails, attempt restart on current node, and then click OK.
    Thanks

  • 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

Maybe you are looking for

  • ITunes can't find most of my music!

    Up to now, synching my iPad to my iMac has been a piece of cake. Suddenly on the latest synch, I get an alert informing me that half my list can't be found and will not be synched to my iPad. So I investigated and found all the music that iTunes clai

  • Iphone 3G stuck in recovery mode loop

    okay...i'm sure there a lot of topics on this, but i can't find anything is fixing the issue. i traded my 32gb ipod for a 16gb iphone 3G. i traded it mainly because i wanted to unlock it to t-mobile. i wanted to updated it to ios4 so i wouldn't have

  • Image on top of video

    Hi,I'm sort of new to iMovie & I have to do a project and I want to place some images on top of a movie is there anyway to do this?

  • Update CS3 from 10.0 to 10.0.1 fails

    Hi I've just bought Photoshop CS5 as an upgrade to CS3. After installation, I de-activated and uninstalled CS3 from my desktop Mac and re-installed and activated it on my MacBook. That seemed to work, however the update from 10.0 to 10.0.1 did not, t

  • ¿como puedo cambiar las preguntas de seguridad?

    Intento instalar algunos programas desde el pc y me piden las respuestas a las preguntas de seguridad. La cuestion es que ya no me acuerdo cuales eran, asi que me gustaria cambiarlas. Gracias a todos