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

Similar Messages

  • Could not start the Bonjour Service service on local computer. Error 6: The handle is invalid

    I have been trying to load teh new Itunes 10.5 for the last week and have been unsuccessful. When the load get to the Bonjour service it fails and puts up a message.
    I have Administrators rights on the machine. I have updated the OS to the latest patch level. I have turned off the Anti-virus and Firewall and still this service will not load. Is there any Ideas of what I can try?

    I thank everyone that responded to this post, I learned a lot from each of them.  After my first attemps with Sean and Shanky I put it asside for a bit and got back to it today. 
    I did what Lydia suggested and disabled the TCP/IP (the Named Pipes was already Disabled) and left only the Shared Memory Enabled and the SQL Server started with no errors.  I launched the software that was requiring the SQL DB and everything is working
    correctly, which I find odd because the software specifically says to check that TCP/IP is Enabled when there are issues with their instance of the SQL Server not starting.
    Since the software I needed the SQL for runs properly I will assume this is fixed.
    Thanks again for everyones help.
    PS - Sean, just to verify I did check and there was no forced encryption and verified that I had set the ports to different values for each instance of SQL Server.
    Thanks for your time on this.

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

  • The handle is invalid

    :brokenheart; When I try to copy code or text from within
    Dreamweaver CS3 on Windows XP SP2, I get the error msg, "The handle
    is invalid". It doesn't matter whether I use menus or the keyboard.
    Yet I can paste text from other applications e.g. MS Word into DW.
    Also, I have some other anomalies:
    I cannot Preview in Browser from DW, as I get an error
    "Access is denied"
    I cannot access Help, I get an error that the Help system
    cannot be found as the Help folder is missing (although I did a
    standard CS3 install and also uninstalled and reinstalled DW in
    Safe Mode, when these problems started).
    Finally, I cannot Print as it assumes that no printer is
    installed and gives me the option to install one. When I click on
    that, it tells me it cannot install a printer as the "print spooler
    service is not running" - Not true and several printers are
    installed.
    I have DW running on a Dell D610 laptop with 1 GB of memory.
    I tried installing it on another system and it seems to work fine.
    Obviously something is wrong with my configuration, but how
    can I fix it without losing any of my client work?
    Thanks for any help offered.
    Rick Mili

    I am having this exact same issue with Copy and Paste on a
    Toshiba L355. Anyone?

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

  • 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");

  • 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

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

  • 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

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

  • I have instaled Firefox on WinXp, and when a I try to open FF i get a mesage: C:/Program Files/Mozila Firefox/ firefox.exe The handle is invalid. How to resolve this? I have Admin rights

    I have instaled Mozila Firefox on a new Dell laptop witch runs Windows Xp Profesional (I have Administrator rights) and when i try to run Mozila Firefox i get the message C:/Program Files/Mozila Firefox/ firefox.exe The handle is invalid.
    I also tryed to install a previos version of Mozila but it's all the same. How to resolve this problem?
    Thankyou

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Problems with System.in (The Handle is invalid)

    Hi everyone,
    I'm new to these boards. I wanted to ask about a problem I've been encountering. Here is the program as follows:
    import java.io.*;
    public class KeyboardLineInput
    public static void main(String a[])
    InputStreamReader isr=null;
    BufferedReader br = null;
    String line;
    int n=0;
    try
    isr = new InputStreamReader(System.in);
    br= new BufferedReader(isr);
    line=br.readLine();
    while(line!=null)
    System.out.println(n + "\t" + line);
    n++;
    catch(IOException e)
    System.out.println(e.getMessage());
    finally
    try
    isr.close();
    br.close();
    catch(IOException e){}
    The problem is that I get a runtime error when I run it. It keeps telling me java.io.IOException: The Handle is invalid
    I'm running with parameters. My parameters are of course just what I type in. I'm doing this through med editor. Also, I've tried this exact program on multiple computers and I still ge the same exact error. Does anyone have clue as to how to solve this?

    What about this?:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class GrossApp extends Applet implements ActionListener
        Label screen1 = new Label ("Hourly rate");
        Label screen2 = new Label ("Hours worked");
        Label screen3 = new Label ("Gross pay");
        Label screen4 = new Label ("Withholding tax");
        Label screen5 = new Label ("Net pay");
        TextField rate = new TextField(8);
        TextField hours = new TextField(8);
        TextField grossPay = new TextField(8);
        TextField withTax = new TextField(8);
        TextField netPay = new TextField(8);
        Button CalculatePay = new Button("CalculatePay");
        Button Clear = new Button("Clear");
        boolean bRet=true;
        public void init() {
         Panel pan=new Panel(new GridLayout(6, 2, 5, 5));
         pan.add(screen1);
         pan.add(rate);
         pan.add(screen2);
         pan.add(hours);
         pan.add(screen3);
         pan.add(grossPay);
         pan.add(screen4);
         pan.add(withTax);
         pan.add(screen5);
         pan.add(netPay);
         pan.add(CalculatePay);
         pan.add(Clear);
         CalculatePay.addActionListener(this);
         Clear.addActionListener(this);
         add(pan);
        } //* init()
        /*    public void paint(Graphics g) {
         if (bRet == false)
             g.drawString("Please enter values",100,160);
         else
             g.drawString(" ",100,160);
        } //* paint()
        public void actionPerformed(ActionEvent e) {
         if(e.getSource()==CalculatePay) {
             bRet = Myvalidate();
             if (bRet == true) {
              double dblgrossPay = Double.parseDouble(hours.getText()) *
                                   Double.parseDouble(rate.getText());
              grossPay.setText(String.valueOf(dblgrossPay));
              double grossP = Double.parseDouble(grossPay.getText());
              double withT  = grossP * ((grossP<=300.00)? 0.1 : 0.12);
              withTax.setText(String.valueOf(withT));
              netPay.setText(String.valueOf(grossP - withT));
             else  repaint();
         else if(e.getSource()==Clear) {
             hours.setText("");
             rate.setText("");
             grossPay.setText("");
        } //* actionPerfomed(ActionEvent)
        public boolean Myvalidate() {
         return !hours.getText().equals("") && !rate.getText().equals("");
        } //* Myvalidate()
    }

  • My reinstallation of itunes is failed, error code is error 7 (windows error 126) the system find not msvcr80.dll script

    my reinstallation of itunes is failed, error code is error 7 (windows error 126) the system find not msvcr80.dll script

    https://discussions.apple.com/thread/5817040?tstart=0
    ....try everything in that thread, should fix the issue.

  • Packaging error 2 (The media contains invalid NALU length)

    Hi,
    I am trying to publish live stream from Adobe Flash client that can be viewed on iOS device.  One known issue is that the Flash client does not support AAC audio encoder when it publishes a stream, but AAC is required for iOS viewing.  Thus I am using ffmpeg to transcode the audio to work around this issue.  The setup looks like following:
                                     Publish(h.264+Speex)      Pull               Re-Publish(h.264+AAC)
    Flash Client Publisher -------------------> AMS -----> ffmpeg ---------------------> AMS
    The command line I use for ffmpeg is like this:
    ffmpeg -re -i rtmp://xxx.xxx.xxx.xxx/livepkgr/orgstream -c:v copy -c:a aac -strict -2 -f flv rtmp://xxx.xxx.xxx.xxx/livepkgr/livestream
    This setup works perfectly if the original stream is published by Flash Media Live Encoder client.  However, if the stream is published by a web page using Flash ActionScript client, the iOS won't play the stream.  The root cause is that HLS module failed to generate the proper TS file. I get the following error in the Apache server log.
    [Sat Aug 17 15:56:50 2013] [error] mod_hlshttp [500]: Packaging error 2 (The media contains invalid NALU length) when processing /hls-live/streams/livepkgr/events/_definst_/livestream/livestreamNum0.ts
    I've tried various things to narrow down the possibilities regarding what could be wrong.  Here are some of my observations:
    1) The problem has nothing to do with audio.  If I do audio streaming only, it works well.  So in various experiement, I simplified the problem by doing video stream only.  When using ffmpeg to transcoding, I used '-an' to disable audio stream.
    2) If I use ffmpeg to save the stream into MP4 file first (say 1 minute long), and then publish that file, I got the same issue when iOS device is trying to retrieve content.  The MP4 file generated is fine though.  I can view it using VLC.
    3) If I use ffmpeg to transcode H.264 to H.264 (i.e. Not to use the "copy" transcoder), it then will work.  However, because of the CPU usage constraints in my requirement, I cannot adopt this approach. Here is the command line that works:
    ffmpeg -re -i rtmp://xxx.xxx.xxx.xxx/livepkgr/orgstream  -vcodec libx264 -b:v 1000k -c:a aac -strict -2 -f flv rtmp://xxx.xxx.xxx.xxx/livepkgr/livestream
    4) In all those experiments, the m3u8 file are generated correctly.  In the stream directory I always saw meaningful size for f4f and f4x files.
    5) The iOS client is able to view the original stream fine if the original stream is H.264 video only stream. (The 'orgstream', not the one republished by ffmpeg).
    6) In all those experiements, a regular Flash viewer client is able to play the live stream with no issue.
    Since I don't have access to source code to the Apache module for HLS (mod_hlshttp), I don't know how to proceed further. I appreciate any help from Adobe engineering team who have access to source code, and give me some hint what could go wrong.  I can also provide further information regarding the published stream, e.g. the generated MP4 if it can help.
    Thanks and best regards,
    Jason
    Message was edited by: Json

    The one thing you didn't do is reset your Photoshop preferences.
    Most likely the preferences got corrupted, and reference a corrupt preset.

  • Error -2147352567 The Margins are invalid

    I'm using the Report Generation VIs of LabVIEW 6.1 in my application (built with Application Builder). They print out my report, if I install my application on a Desktop PC. But the same application installed on a Laptop generates the Error -2147352567 "The margins are invalid" and my report would'nt print out. This is very annoying. How can I solve this problem?

    The first thing to do is verify the values you are trying to set the margins to. If these values are bring calculated and the calculation involved floating-point numbers there is always the possibility that a calculation isn't working as expected with the result that the margin value being generated is not correct--no matter what printer the code is driving.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for

  • Sound Blaster Cinema with z87 g45

    Hi to all. I have the z87 g45 motherboard and I can't use Sound Blaster. When I open it, there's this text: Quote The current audio device is disabled, not present, not supported by the application, or has unplugged jack connestions. Do you want to s

  • Table and Fields Required

    Dear Guru's, We are trying to build a project profitability report for which we are unable to find the tables for, 1. Planned Revenue 2. Actual Revenue 3. Budget 4. Actual Cost In our case we are using sales contract as sales document. I am not able

  • Hello I am a newbie to lightroom and a photographer in need of a rescue.  The isssue is this I backup my lightroom catalogs with a Seagate Back-up Plus ext/hd

    The Seagate has all the backup catalogs stored and still lightroom cannot display them and consider them as "missing".  How can these photos which lightroom has stored the date/time, size of file, and type(such as dng) be located so they can then be

  • 2 x 4400n

    Hi, I have 2 x 4400N's configured exactly the same but when I search for wireless networks - 2 wireless networks show up. If the SSID and all the other settigns are configured the same shouldnt only 1 SSID wireless network show up? Am I missing somet

  • Still major stalling problem in ITUNES  **HELP ME PLEASE!!**

    OKAY, I got rid of my anti-virus program completely, and STILL iTunes takes up 100% of CPU power from 11-17 seconds, causing the playback to slow down completely and distort the songs... Here's my original post: Alright, here's my esoteric problem: I