Handle is invalid after PrintToPrinter
Hello,
The evironment is a 2008 64 bit server that is used for the crystal report generation in a 32 bit application. The printservers that host the printers are 2003 32 bit servers. The first printserver is connected to the 64 bit 2008 using ThinPrint and from there it connects through to the 2003 printserver with the specific drivers for all printers. If you don't know ThinPrint it 's an application used to shrink the spooled fill for less networktraffic.
We use the redistributable cr2008fp35_redist.zip.
I receive the following error:
Message:The handle is invalid
Source: System.Drawing Stacktrace: at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e) at System.Drawing.Printing.PrintController.Print(PrintDocument document) at System.Drawing.Printing.PrintDocument.Print() at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
Kind regards,
Koen Stoops
Well, we need some baby steps here. I need to be convinced that the printing works in the simplest instance. And that will be a simple win ap, preferably constructed as follows:
1) CR Viewer
2) Two buttons
3) A saved data report
4) Button1 code; CRViewer1.ReportSource = <path to saved data report>
5) Button2 code;
crReportDocument.PrintOptions.PrinterName = "
server\myprinter"
crReportDocument.PrintToPrinter(1, True, 1, 1)
MessageBox.Show("Report finished printing!")
6) Compile
7) Move the app exe to the server
8) Run the app. Test printing from the viewer 1st, then code (button2)
- Ludek
Similar Messages
-
Handle Is Invalid - when doing PrintToPrinter
I have a program installed on maybe 150 computers in our company and randomly (maybe 3-4 times a week) I get the error below from some of these computers. As I said total of 3 to 4 times a week from the 500 odd times this code is run..
<Message>The handle is invalid</Message>
- <StackTrace>
<StackItem Method="System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)" LineNumber="-1" />
<StackItem Method="System.Drawing.Printing.PrintController.Print(PrintDocument document)" LineNumber="-1" />
<StackItem Method="System.Drawing.Printing.PrintDocument.Print()" LineNumber="-1" />
<StackItem Method="CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)" LineNumber="-1" />
<StackItem Method="CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)" LineNumber="-1" />
<StackItem Method="MobilePhoneSales.AL.usrContractDetails.cmdSaveContract_Click(Object sender, EventArgs e) in Z:\SVN_Repos\MobilePhoneSales\MobilePhoneSales\AL\usrContractDetails.cs" LineNumber="511" />
<StackItem Method="System.Windows.Forms.Control.OnClick(EventArgs e)" LineNumber="-1" />
<StackItem Method="DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)" LineNumber="-1" />
<StackItem Method="DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)" LineNumber="-1" />
<StackItem Method="System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)" LineNumber="-1" />
<StackItem Method="System.Windows.Forms.Control.WndProc(Message& m)" LineNumber="-1" />
<StackItem Method="DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)" LineNumber="-1" />
<StackItem Method="System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)" LineNumber="-1" />
<StackItem Method="System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)" LineNumber="-1" />
<StackItem Method="System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)" LineNumber="-1" />
</StackTrace>
I am running crystal reports version 12.02 and using .net 2.0, the error happens on the PrintToPrinter line of the code below.. Thanks for having a look any questions I will try and respond with as much detail as possible..
using (ReportDocument ZeroUpfrontContract = new AL.rptZeroUpfrontContract())
ZeroUpfrontContract.SetParameterValue("Header1", BL.HeaderRecord.m_HeaderLine1);
ZeroUpfrontContract.SetParameterValue("Header2", BL.HeaderRecord.m_HeaderLine2);
ZeroUpfrontContract.SetParameterValue("Header3", BL.HeaderRecord.m_HeaderLine3);
ZeroUpfrontContract.SetParameterValue("Header4", BL.HeaderRecord.m_HeaderLine4);
ZeroUpfrontContract.SetParameterValue("Header5", BL.HeaderRecord.m_HeaderLine5);
ZeroUpfrontContract.SetParameterValue("Stock_code", txtBarCode.Text.Length > 0 ? DL.Inventory.queryStockCode(txtBarCode.Text) : "");
ZeroUpfrontContract.SetParameterValue("descript", lblItemDescript.Text);
ZeroUpfrontContract.SetParameterValue("IMEI", txtIMEI.Text);
ZeroUpfrontContract.SetParameterValue("Comments", "Comments: " + txtComments.Text);
ZeroUpfrontContract.SetParameterValue("ContractDate", DateTime.Now);
ZeroUpfrontContract.SetParameterValue("CustName", currentCustomer.FirstName.Trim() + " " + currentCustomer.Surname.Trim());
ZeroUpfrontContract.SetParameterValue("DataPack", chkDataPlan.Checked ? cboDataPacks.Text : "Declined by customer, therefore Pay As You Go rates will be applicable.");
ZeroUpfrontContract.SetParameterValue("ETC", chkETC.Checked ? rdoETC.SelectedIndex == 0 ? "Cancellation fee of $" + txtETCValue.Text + " reoccuring for the next " + txtETCDuration.Text + " months."
: "Cancellation fee of $" + txtETCValue.Text + " on next bill."
if (cboWarrantyCodes.SelectedIndex > -1)
ZeroUpfrontContract.SetParameterValue("Warranty", "1 Year Extended Warranty Included");
else
ZeroUpfrontContract.SetParameterValue("Warranty", " ");
ZeroUpfrontContract.PrintToPrinter(2, false, 1, 999);Make sure the printer driver you are using is correct for;
1) The printer type it's self
2) The OS
Your code does not show if you are using .Close and .Dispose on the report objects, but this would be highly recommended.
Make sure you are using SP1:
https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
The above will update your dev computer and install new MSI file that you should use to deploy the SP 1 (SP1 will not install on runtime computers. Only the MSI will):
c:\program files\microsoft visual studio 8\sdk\v2.0\bootstrapper\packages\crystal reports\CRRedist2005_x86.msi
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
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 -
HI,
first of all: I'm relatively new to LabWindows, working on it during some practical work as a Student
(yeah, and sorry for the bad english, I'm from Germany)
To the Problem:
The first important Information:
After having searched for a solution, I just don't know, what to do,
My Project consists of ONE Main.uir-File with a Tab, a "Main.c" that basically handles the main .uir-Stuff and some Initiating-Stuff and in addition to that Several Sub-Sourc-Files, one for each Tab-Panel of the Main.uir-Tab.
To use the UI-Items on the Main-Tab with the Sub-Sources, I am initiating Tab-Handles at startup, that can be used by the SubSource-Files, like:
GetPanelHandleFromTabPage (PANEL, PANEL_TAB, 2, &BALU);
With this Handle, I can identify every UI-Items, when working with the SubSources
The second important information:
In some of the TabPages of the .uir there are several ControlArrays. To use them I create a ControlArrayHandle, like:
MWSAverageHandle = GetCtrlArrayFromResourceID (BALU, MWSAverageArray);
No, I am able to identify specific elements of the Arrays, like:
SetCtrlVal (BALU, GetCtrlArrayItem (MWSProgressHandle, ActiveBalun), ProgressString);
Now there is a Problem, I am not able to solve:
During runtime, everything works out fine, I can use every element of a ControlArray with this ControlArrayHandle ("MWSProgressHandle"), everything works perfect, no errors at all. BUT, when closing the programm, I get the following error-message:
NON-FATAL RUN-TIME ERROR: "Baluns.c", line 313, col 16, thread id 0x00000AB8:
Library function error (return value == -4 [0xfffffffc]). Panel, menu bar, or control array handle is invalid
But this seems somehow ridiulous to me, because at runtime every single line works perfect, every Array-Item can be used without Problems...
Is there anything I am just not able to see???
Thanks a lot for your help.
Greeting from Lübeck, Germany!
Mathias
Solved!
Go to Solution.Maybe I just figured something out:
First of all, most of the Functions, that cause the Error, are in Timer-Callbacks (at this state of development, ALL of them)
So I just added a Test-Function in a normal Button-Callback, which contains a "GetCtrlArrayItem"-Function, and this specific Line does NOT cause an Error... (Or at least it does not occur in the Error-List, when clicking "continue" in debugging-mode). Somehow the Timer-Callbacks seem to be called, when closing the Application...
BUT: this happens when I don't do anything in the Application, and the all Timers are Disabled, until some Buttons are pushed (so when I close the application right after opening it, they still should be disabled)
@ Wolfgang:
After discarding I do not want to use one of the handles, or at least I'm not doing that purposely
@ Roberto:
Actually I am only discaring the MainPanel-Handle in the Main.uir (and one other Panel, but the error occurred before implementing that other panel). Do all Handles (PanelHandles as well as ControlArrayHandles, TabPageHandles and so on) need to be discarded?
And no, I did not check the Variable Window, I was not aware of this possibility, I will try to figure that out. -
Subject host OS: windows 8 pro.
I've turned os feater hyper-v on, restarted copmuter. In hyper-v manager added empty virtual machine. After double clikcing on my newly created machine windows with "virtual michine connection appeered". I turned button "power on" and
console has dropped error:
"remote desktop connection": "An authentication error has occurred. The supplied handle is invalid."
on the tiny image on the left bottom picture a can see quest console.
1) How can i install OS on my guest, where is default console for virtual machine?
2) What is RDP required
for on this firts stage of installation and how can i connect to the virtual machine console without it???Hi,
Regarding your first question, here is an article talking about install and configure the first virtual machine in Hyper-V, please refer to Step 2: Create a virtual machine and Step 3: Install the guest operating system in the below link:
Install Hyper-V and Configure a Virtual Machine
By saying the default console for Virtual machine, do you mean the Hyper-V manager?
The error might indicate that there is no VM available to connect. After we installed a OS, then we could connect it with the right-click in Hyper-V manager, see:
Connect to a Virtual Machine
The RDP connections is used to connect the VM in Windows 8, and for Windows 8.1, there are great improvements including what's called Enhanced Session Mode, more information, please see:
Overview: Client Hyper-V Enhanced Session Mode in Windows 8.1
If I misunderstand something, please let me know.
Best regards
Michael Shao
TechNet Community Support -
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 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
AlbertAlbert,
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 -
Session state always invalid after login
Hello community,
i have a functional login process which uses my own login with username and password. After login i branch to application start page, but this session now is different from the start login session, so every login is invalid and will branch to authentication scheme invalid page.
My login url is: f?p=100:100:123456
After correct login (i have tested in the database with a lot of inserts into tmp_table)
i want to branch with the standard login procedure wwv_flow_custom_auth_std.login() to page 1000.
The correct url is shown in the browser, but the current page is the login page 100, because (i think) the session is invalid. In the authentication theme the invalid session page is set to page 100.
I have tested several pages and always this page is branched.
So im shure, that the session state is always invalid after login.
But why ????
Has anyone an idea ?
Thank you for responding.
FrankHi Jari,
problem was solved.
The IE8 has cached an invalid site.
I know now were it is come from.
I have an after submit process which sets the cookie with following code:
owa_util.mime_header('text/html; charset=UTF-8;', FALSE);
owa_cookie.send(
name=>'DHW_COOKIE',
value=>utl_raw.cast_to_raw(dbms_obfuscation_toolkit.md5(input_string => ':P100_REGCODE' || :P100_USERNAME ))
owa_util.http_header_close;
But this results in display on the screen like html text without tags, so it looks like text on the screen header.
It shows "content-type=text/html charset=WINDOWS 1252 .......
The cookie is not set to the disk and now the IE8 explorer is dead.
The described problem of this thread is shown.
If you close all sessions and restart IE8 then the error is fixed.
Also i have disabled the after submit process with setting the cookie.
So i live now without having a cookie set.
Do you have any idea for this behaviour ?
Frank -
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?
ThankyouDo 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]] -
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, -
Dreamweaver CS4 serial number invalidated after 8 months of use
In January 2nd 2014, I purchased an OEM version of Dreamweaver CS4 for Windows from a reseller called "Smart Shop" which looked like a serious outfit [emails from Jet Support were received with a link to "Access your order and customer support http://appscustomerscare.com"]. A serial number was obtained. I downloaded the program from their site and installed it without any problem: When I launched the application, the serial number was inserted and the Adobe server validated it: the application worked seamlessly for more than 8 months.
Yesterday, when I launched Dreamweaver CS4, a dialog box showed up stating the the serial number used was invalid! I used the serial number that I had been given to activate Dreamweaver but the form showed a red X at the end of the serial number meaning the the serial number was invalid.
[personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
[This is an open forum, not Adobe support, please do not post personal information]
Now, I'm back to the trial version (available for 29 more days)!
Is there a licensing problem link with buying an OEM version of Dreamweaver from resellers?
Why was the serial number considered valid on first run and all successive runs and then invalidated after 8 months?
How can I be sure that my next "bona fide" purchase of Dreamweaver won't run into the same problem?
Is there a way to recognize good from bad resellers?Sorry you got nailed - Next time try this
http://www.adobe.com/cfusion/partnerportal/index.cfm
Some info about appscustomerscare
http://www.scamadviser.com/check-website/appscustomerscare.com -
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 IgnoreOkay. 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? -
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 -
: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 MiliI am having this exact same issue with Copy and Paste on a
Toshiba L355. Anyone? -
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");
Maybe you are looking for
-
How to delete mobile bookmarks folder?
I have tried sync, but don't want it. First I unchecked all the boxes so nothing syncs, then I deactivated my computer, and then I deleted my sync account. But there is STILL a mobile bookmarks folder in my Firefox which I can't delete. How to get ri
-
I can't get gold of adobe - which is annoying me. I have a file that has been uploaded to my creative cloud that i did not upload or have i ever seen before. SO it seems adobe cannot guarantee security and are uncontactable - i think i may leave
-
Calculator.app Version 4.5.3 (99.2) and Scientific Notation
I want to enter a number with scientific notation. 2.71e1 doesn't return 27.1, but rather 0.999... It seems that Calculator.app is dividing by e. This is not a common operation. 2.71E1 gives 27.1great! But ... 2.71E-1 does not return 0.271 neither do
-
Licence IP check only on first interface?
Hello, our hoster had to change the ip configuration of our machines. We lost the IP mentioned in the licence. So we ordered a new licence via our customer for the new ip (which is configured on hme1, hme0 is the service lan used for backup etc.). We
-
IE Javascript Error when Creating-Posting SC - JDK/JVM issue in SSL mode?!?
Hi SDN We are running on SRM 5.0, with server at 5.5 and we have just implemented SP 11. Since then, our users running IE with the Sun JVM 1.4.2_10 are getting a JavaScript error everytime an applet loads (EPCF) on their page (in this case, it is the