Windows error 0xC0000142, -1073741502

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)true
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[1][2]
DescriptionThe default facility code.[1][2]
Error Code322 (0x0142)

Questions

35votes
8answers

Using Process.Start() to start a process as a different user from within a Windows Service

I'd like to periodically run an arbitrary .NET exe under a specified user account from a Windows Service. So far I've got my windows service running with logic to decide what the target process is, and when to run it. The target process is started in the following manner: 1. [...] read more
c#
.net
windows-services
process
service
19votes
4answers

Alternative to "Allow service to interact with desktop"?

I have a windows service (C#) installed on a server that launches every 10 minutes an executable file (C#) to process some images from one directory to another. No interaction is required with any user. Nevertheless, since the executable file as an output window, to make the service run I [...] read more
c#
windows-services
exe
18votes
6answers

Github/Cygwin error: cygheap base mismatch detected

Git has been giving me this error 0 [main] sh (47116) C:\Users\Marcus\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x11C7400/0x1297400. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent [...] read more
git
github
cygwin
15votes
2answers

Visual Studio 2015 C++ app requires api-ms-win-crt-runtime-l1-1-0.dll on client clients

I've built an application with Visual Studio 2015 Community edition. When some of my users try to run it it they receive the following error: > The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem. Clearly this is solved by [...] read more
c++
windows
visual-studio
dll
14votes
1answer

WampServer Apache httpd.exe application was unable to start correctly (0xc0000142) after Windows 10 Creators Update (1703))

The Windows 10 Creators update seems to have hosed Apache's httpd service, which now errors when I first start the WampServer. The official form confirms this suspicion. WampServer version 3.0.6. However, none of the suggested solutions on the forum worked, as of the time of this post. Thus, I've opened [...] read more
apache
wamp
wampserver
13votes
3answers

does windows have a limitation when a process started by a scheduled task under one set of creds runs another program under a different set of Creds

So i have a simple example, where i have app A, which has some hard coded creds to user X , a local admin, and then it launches app B with those Credentials using a hardcoded absolute path. Both A and B and dotnet console applications, however they don't interact [...] read more
c#
powershell
scheduled-tasks
9votes
7answers

Starting a process with credentials from a Windows Service

I have a Windows service that runs as mydomain\userA. I want to be able to run arbitrary .exes from the service. Normally, I use Process.Start() and it works fine, but in some cases I want to run the executable as a different user (mydomain\userB). If I change the ProcessStartInfo I [...] read more
c#
.net
windows-services
7votes
1answer

EXE crash when calling from ProcessBuilder in java

I am invoking some EXE's(7za.exe, pg_basebackup.exe, ...) from JAVA ProcessBuilder. It is working without any issues for 2 or 3 days (EXE will be called daily). After that EXE's are crashing continuously. > 7za.exe error: Exit code :: -1.073.741.502 Windows Event log error: Faulting application name: 7za.exe, version: 9.20.0.0, time [...] read more
java
windows
exe
processbuilder
6votes
2answers

Error On Shutdown - cmd.exe Application Error 0xc0000142

I realize this question is quite common, but I can't seem to find a situation that matches exactly what my issue is, it happens at shutdown and with cmd.exe. So recently I've been getting this bug... I may be wrong, but, I believe it appeared after I tried to cache [...] read more
windows-7
windows
cmd.exe
shutdown
6votes
1answer

Debugging desktop heap exhaustion

I'm supporting a product at the moment which seems to be consuming a lot of desktop heap. The binaries are mostly .net, and are all running session 0 as non-interactive processes (they are all sub-processes of an installed windows service). So, to my knowledge, they shouldn't be consuming any Desktop [...] read more
heap
6votes
2answers

How to troubleshoot app failing to start with STATUS_DLL_INIT_FAILED (0xc0000142) after Windows 10 "Threshold 2" update (1511, build 15086)

We publish a Windows desktop application (built with Visual C++ 2013 with the v120_xp platform toolset) which worked fine on Windows 10, but we've started to receive reports from users who have installed the "Threshold 2" update that our app now fails to start, showing the following error message: > [...] read more
c++
windows
dll
windows-10-desktop
6votes
2answers

CreateProcessAsUser process exits with -1073741502

I have a service that is responsible for starting/monitoring an interactive process in user session once user logins and console session connects. Service is set to start automatically so its up and running before user login. All work fine on first login and i get the user process started/restarted correctly. [...] read more
c#
winapi
4votes
2answers

How to Start a Process Unelevated

My app runs as requestedExecutionLevel set to highestAvailable. How do I run a process unelevated? I tried the following but it didn't work: Process.Start(new ProcessStartInfo {FileName = "foo.exe", Verb = "open"}) I have tried the following trust levels to start my process using Win32 API but none of them work [...] read more
c#
.net
vb.net
elevation
process-elevation
4votes
2answers

Createprocess and 0xc0000142 error

i have the following test code: #define CMDLINE ".\\dummyFolder\\dummyProc.exe op1 op2 op3" int main(int argc, char **argv) { STARTUPINFO info; info.cb = sizeof(STARTUPINFO); info.lpReserved = NULL; info.cbReserved2 = 0; info.lpReserved2 = NULL; PROCESS_INFORMATION processInfo; SECURITY_ATTRIBUTES procAttr; procAttr.nLength = sizeof(SECURITY_ATTRIBUTES); procAttr.lpSecurityDescriptor = NULL; procAttr.bInheritHandle = false; SECURITY_ATTRIBUTES threadAttr; procAttr.nLength = sizeof(SECURITY_ATTRIBUTES); [...] read more
c++
windows
createprocess
4votes
4answers

GitHub git pull fatal error cygwin DLL

I am trying to perform a git pull command from my github cmd using the GitHub desktop client. For some reason my git pull no longer works, and it spits out the following errors: D:\AndroidStudioProjects\Tangle>git pull 1 [main] sh (6932) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - [...] read more
git
github
git-pull
4votes
2answers

process started from service with CreateProcessWithLogonW terminates right away

In a test framework process A has to start process B under different user credentials (say, _limited_user) using CreateProcessWithLogonW API. lpStartupInfo->lpDesktop is NULL, so process B is supposed to run in the same desktop and window station as process A. Everything works fine when process A is started manually (as [...] read more
windows
security
winapi
4votes
4answers

System.Diagnostics.Process.Start() cannot start process when called from Windows service

I am trying to start an external process from a .NET Windows service. In the past I have used the Process.Start() overload that takes the executable path and a command line string. This works. But now I would like to start the process and have it run in the context [...] read more
c#
.net
windows-services
4votes
1answer

Generating SSH-Keys for Git on Windows 7

I'm experiencing a strange error while attempting to generate SSH keys via the Git Bash command line tool as downloaded from ( http://code.google.com/p/msysgit/downloads/list). I'm using Windows 7 Enterprise and have full administrative privileges. When I run the following command from the Git Bash command line: ssh-keygen -t rsa -C "your_email@youremail.com" [...] read more
git
windows-7
ssh-keys
3votes
2answers

The application was unable to start correctly 0xc0000142 error when I try to open xampp shell through control panel

Using the latest xampp version with PHP 7 error image [cmd.exe] The application was unable to start correctly (0xc000142). Click OK to close the application I get a message that the application cannot start when I click the "shell" button in xampp control panel. I reinstalled xampp. Didn't work. Updated [...] read more
php
xampp
3votes
1answer

Why is Outlook crashing when using Office interop?

I am attempting to utilize Office interop with C#, but I'm having some difficulties. Executing a test like the one I included below seems to work insofar as it launches Outlook and seems to connect with it. The issue is that if I then try to open the Outlook window [...] read more
c#
outlook
office365
office-interop
3votes
3answers

How to run jigdo on Windows 10

I am used to using Jigdo to compile Debian CD/DVD images. Since moving from WIndows 7 to Windows 10, I get the following message when I try to run jigdo-lite.bat: Jigsaw Download "lite" Copyright (C) 2001-2005 | jigdo@ Richard Atterer | atterer.net 0 [main] sh 2712 sync_with_child: child 10236(0x170) died [...] read more
debian
windows-10
3votes
1answer

LoadUserProfile not actually loading profile?

This code, run from IIS under the app pool account, can run an executable like notepad.exe or some custom simple .NET app. I can even write to a file from the guest account/app. But accessing the registry (such as Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Local Page", null);) from the app results in a [...] read more
c#
winapi
iis
com-interop
3votes
2answers

ASP.NET debug fails to start google chrome - error crome.exe 0xc0000142

When I try to start debugging my ASP.NET application with google chrome. Chrome failed with the code 0xc0000142. Debugging with other browsers works. I have set Chrome as my default browser, and has not observed any other problems. Only Visual Studio seems to have problems with my chrome browser. Any [...] read more
google-chrome
visual-studio-2015
3votes
1answer

Using a vb.net application running as SYSTEM, how do I start a detached process for each logged on user?

After weeks of research on this topic I've finally decided to start a thread of my own in hope there is someone out there with experience that can help. I've scoured the internet trying to understand the various coding examples out there, but I've come up short trying to put [...] read more
vb.net
service
system
interactive
createprocessasuser
3votes
1answer

Mingw runtime error

I'm a new user of MinGW, and I have already run into problems. When attempting to compile a very simple Hello world c++ program, I get an error. I type the command: g++ hello.cpp -o hello.exe and then I get the message dialog: Microsoft Visual C++ Runtime Library Runtime Error! [...] read more
c++
c
visual-c++
mingw
2votes
1answer

The Application was unable to start correctly (0xc0000142)

System = Windows 7 64-bit Various programs, notably Regedit, won't start. Instead I get: The Application was unable to start correctly (0xc0000142). Strangly, at least to my thinking, I can launch them via Task Manager. I am also grappling with AVG errors or over-activity, e.g. reports of Broken digital Signature. [...] read more
windows-7
regedit
2votes
2answers

cmder error when open new bash tab

0 [main] bash (1884) E:\cmder\vendor\git-for-windows\bin\..\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1416408/0x14C6408. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version *should* reside [...] read more
git
git-bash
cmder
2votes
2answers

CSC compiler error in Sitecore application

We have an issue where the editors in Sitecore, experience trouble with change language in the content editor. This happens because a compiled dll was not found. Exception: System.IO.FileNotFoundException Message: Could not find file 'C:\WINDOWS\TEMP\gwp5mkkl.dll'. Source: mscorlib at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 [...] read more
c#
.net
sitecore
csc
2votes
1answer

External makefile in Atmel Studio won't build. Windows error 0xc0000142

I downloaded bitcloud, the atmel zigbee stack and I am trying to compile one of the default applications, ZLLDemo. It is located currently at: C:\Users\Ryan\Desktop\BitCloud_MEGARF_3_1_0\Applications\ZLLDemo\atmelStudio_projects\ATmega256RFR2.cproj Everytime I try to compile the application I get a windows message screen for "mkdir.exe" error 0xc0000142. In the Output screen I see the line [...] read more
makefile
avr
2votes
4answers

Error when i open wamp server, the application was unable to start correctly (0xc0000142)

I recently opened Wamp server after a long time I didn't touch it. It was fine back then, but when I try to open Wamp server now, I get an error that says > The application was unable to start correctly (0xc0000142). In addition, the wamp icon is orange, while [...] read more
wamp
2votes
0answers

Compiled C# application 0xC0000142 error

I met a highly disturbing issue. I wrote a C# application in Visual Studio Community which uses a local .mdf database file. My computer's operating system is Windows 10 Home, 64 bit. My problem is that I cannot run the compiled EXE file on certain computers. Previously I used it [...] read more
c#
visual-studio
exe
2votes
0answers

0xC0000142 from Process.Execute with different credentials

Trying to run a process as a different user gave me: 0xC0000142. From an existing process running under a regular local account, why do this process receive 0xC0000142 when it try to start another process using Process.Execute with ProcessStartInfo having any other credentials (either a local account or a domain [...] read more
c#
process
credentials
account
2votes
1answer

SaferCreateLevel SAFER_LEVELID_UNTRUSTED: The application was unable to start correctly (0xc0000142)

i'm trying to launch a process (any process) as "untrusted" using the SaferCreateLevel with the SAFER_LEVELID_UNTRUSTED safer level: > Allows programs to execute with access only to resources granted to open well-known groups, blocking access to Administrator and Power User privileges and personally granted rights. Using the code from Michael [...] read more
security
winapi
uac
2votes
0answers

C# System.Diagnostics.Process launches on my local IIS, but doesn't launch on the server

I'm trying to make my program to run a bat file, that launches an exe file. It works fine on my local computer, but doesn't work on the server IIS. It doesn't work regardless of whether I specify the username and password in the ProcessStartInfo or not. I've searched forums [...] read more
c#
iis
system.diagnostics
2votes
1answer

Failing to run C# process as different user

I'm trying to run djoin.exe tool with System.Diagnostics.Process from a C# service using a different user (not as the service user). The process returns code -1073741502. In the event log I can see: > Application popup: djoin.exe - Application Error : The application was unable to start correctly (0xc0000142). Click [...] read more
c#
.net
impersonation
2votes
1answer

The application was unable to start correctly 0xc0000142 CreateProcessWithLogonW

I have a block of of code if(!CreateProcessWithLogonW( szUserName, NULL, szPassword, LOGON_WITH_PROFILE, L"C:\\Windows\\System32\\cmd.exe", // file to execute NULL, NORMAL_PRIORITY_CLASS | CREATE_BREAKAWAY_FROM_JOB, // creation flags NULL, // pointer to new environment block NULL, // name of current directory &si, // pointer to STARTUPINFO structure &pi // receives information about new process [...] read more
c++
winapi
startup-error
2votes
1answer

Binary was not built with debug information in Visual Studio 2008

Though the project builds without any error, when I debug the project for starting new instance, the following error is dispayed: > winpeshl.exe - Application Error The application failed to initialize properly (0xc0000142). Click OK to terminate the application. And the debug output panel displays the following: > C:\Windows\SysWOW64\msxfs.dll', Binary [...] read more
c++
debugging
visual-studio-2008
dll
dllimport
2votes
1answer

Windows Azure Emulator Needs Constant Resetting

I have a problem where SQL Server isn't playing with with the Azure Development Storage. When I start debugging I always have to run the DSInit command. It runs successfully with the following output: Added reservation for http://127.0.0.1:10000/ in user account STARDESTROYER\NW. Added reservation for http://127.0.0.1:10001/ in user account STARDESTROYER\NW. [...] read more
sql-server-2008
azure
azure-compute-emulator
1vote
1answer

SQL Server 2016 - Server crash

I did a fresh installation of a SQL Server Standard 2016 on Microsoft Windows Server 2016. During the installation and manually starting the database engine service i get the following error: Windows could not start the SQL Server (MSSQLSERVER) service on Local Computer Error 1053: The service did not respond [...] read more
sql-server
windows-server-2016
sql-server-2016
1vote
1answer

How to troubleshoot Application Popup issues 0XC0000142 and 0XC000009a

I am running randomly into 1 of these popups when our application runs. The machines range from 8GB/8Core to 24GB/24Core and run Windows Server 2008 R2. The application is a bunch of perl scripts and exe's that are expected to utilitize the server well. The process tree can be quite [...] read more
windows-server-2008-r2
windows-event-log
1vote
2answers

cmd.exe error windows 7 the application was unable to start correctly (0xc0000142). Click ok to close the application

when i try to open the cmd.exe. a box pops up with the message of cmd.exe error windows 7 the application was unable to start correctly (0xc0000142). Click ok to close the application. my pc was infected with surabaya virus and rootkit and removed it with Avast free anti virus [...] read more
windows-7
command-line
virus
cmd.exe
1vote
2answers

Problems while starting console programs on Windows 7 x64 (0xc0000142)

a customer of us has the problem that sometimes the error 0xc0000142 (Application failed to initialize properly) occurs while our software tries to execute a console program. Since the console program run properly if we start it manually, a virus, which infected the system files, can be excluded. Furthermore it [...] read more
windows-7
windows
1vote
0answers

How to resolve this cmd.exe exception?

I am trying to start a task from the task scheduler. The task will basically run a 'runas /savecred /user:abc job.bat' to start a process. However it has failed. I find this error message in event log and I think it can be relevant. Log Name: Application Source: Application Error [...] read more
cmd.exe
windows-server-2012
1vote
0answers

Azure Pipelines - tests fail with Exit code 0xc0000142

I use Azure DevOps pipelines for testing my C++ codes on several platform including windows. One of my pipelines fails for tests on windows : Test project D:/a/1/s/build/opengeodeio Start 1: test-obj 1/3 Test #1: test-obj .........................Exit code 0xc0000142 ***Exception: 0.14 sec Start 2: test-ply 2/3 Test #2: test-ply .........................Exit code [...] read more
c++
windows
azure-devops
azure-pipelines
1vote
0answers

Perl script for starting a process as another user not working properly

I have a Perl script which uses Win32::API and the command CreateProcessWithLogonW in order to start a process as another user. However, when I run this script from a browser, the following error message appears on the server screen: "The application failed to initiate properly (0xc0000142). Click on OK to [...] read more
windows
apache
perl
1vote
0answers

fatal error - cygheap base mismatch detected - 0x13A1410/0x13D1410

I was trying to install poppe using this command npm install popper --save but I got a bunch of errors like this error message: 3 [main] sh (28644) C:\Program Files\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x13A1410/0x13D1410. This problem is probably due to using incompatible versions of [...] read more
bootstrap-4
cygwin
mismatch
1vote
1answer

Desktop Bridge Application Launch & Localization Issues

I have a legacy win32 application which I tried converting using the DAC providing the .msi from the application installer and the application works as is post conversion. But I have few queries below. 1. I used the same Base Image as my OS version for the conversion. But the [...] read more
uwp
desktop-bridge
desktop-app-converter
1vote
3answers

Git Bash cannot be initialized

enter image description here [https://i.stack.imgur.com/fIrkR.jpg] When i use git bash it says"Failed to fork child process: Resource temporarily unavailable.DLL rebasing may be required. See 'rebaseall --help'." How can I fix this problem? When I use tortoiseGit to stash I got some message like this > git.exe stash save -- "12" [...] read more
git
bash
dll
1vote
0answers

Qt for android build failure (install_target error 129)

I'm tring to build the Qt Quick Demo - Calqlatr bundled with Qt for an android device w/ armeabi-v7 but i get a [install_target] Error 129 looking at the detailed output it shows [...] 14:48:09: The process "C:\Qtwdroid\Tools\mingw530_32\bin\mingw32-make.exe" exited normally. 14:48:09: Starting: "C:\Qtwdroid\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:/Qtwdroid/Examples/Qt-5.7/quick/demos/build-calqlatr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Release/android-build" install 0 [main] sh 2744 sync_with_child: [...] read more
android
c++
windows
qt
1vote
0answers

C# - Starting process under different user than the IIS application pool user

public static string StartProcess(string cmd, string args, string workingDirectory, string username, string password) { // launch system process ProcessStartInfo startInfo = new ProcessStartInfo(cmd, args); startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardInput = true; startInfo.UseShellExecute = false; startInfo.CreateNoWindow = true; startInfo.UserName = username; startInfo.Password = ConvertStringToSecureString(password); // get working directory from [...] read more
c#
asp.net
iis
1vote
0answers

visual C++6.0 can not start(0xc0000142) after I update my OS to windows10 1607

before updating´╝îIt run well.When update completely,I found it can not start and I try to reinstall it,but also can not start.what's wrong? read more
visual-c++
1vote
1answer

How to recover xampp server database file?

My xampp server was destroyed by virus in my local host. I cannot start this xampp server again. I want to recover my database file. If I start my xampp server and click any files in it, the the following error appears: The application was unable to start correctly (0xc0000142).Click [...] read more
mysql
database
phpmyadmin
xampp
server
1vote
0answers

Unable to execute Powershell script via Jenkins

I wrote this powershell script to impersonate another user with DB access, execute a select query against, export the results into a CSV and also purges historic results from a specified folder. It works great when run manually. But I want to set it up as a Jenkins job so [...] read more
powershell
jenkins
automation
1vote
1answer

Executing msbuild process through code gets exit code -1073741502

My application is executing MsBuild.exe using Process.Start(); running as another user. The process is running as a service. When executing the process instantly fails and returns an error code -1073741502. * I am executing my code as a service. * No matter what user, or permissions I grant this occurs [...] read more
c#
msbuild
1vote
0answers

How can I prevent my application from causing a 0xc0000142 error in csc.exe?

The application in question is written in C#. We are late in the development cycle, close to launch on our application. One of my coworkers is seeing the following issue: When he logs out of his Windows 7 session while the application is running, he gets a "csc.exe - Application [...] read more
c#
xmlserializer
csc
1vote
2answers

How to detect Windows Closing in Timer event code in VB.Net

I've been writing a program for the community, and have come up against a problem that I can't find the answer to. I have a VB.NET application, which has a timer event that fires every second to check if a task exists and if it's enabled, this runs some code [...] read more
vb.net
windows
timer
1vote
1answer

Starting a program which is a part of large package from an ASP.NET web page

The project I am working on has a requirement to generate a LaTeX file in an ASP.NET VB web page and run PDFLaTeX program to compile into PDF. I tried that in a local web server from within Visual Studio and it worked fine. But when I created a virtual [...] read more
asp.net
vb.net
pdflatex
1vote
1answer

Why can't I start a batch file from a service using system() in Windows Server 2008?

I have a C++ program that runs as a service on a 64-bit Windows Server 2008 machine. This program attempts to start a batch file using the following command: system(C:\pathtofile\file.bat) In 32-bit Windows Server 2003 this worked fine (the batch file was executed), but on Windows Server 2008 the batch [...] read more
c++
windows
batch-file
service
session-0-isolation
1vote
1answer

WCF service Process.Start under network service account impersonating as a different user

I have Wcf Service hosted in IIS, Windows Server 2008 R2, using an AppPool .NET 4.0 with NETWORK SERVICE Identity. My Wcf Service has a method that calls an command EXE using Process.Start. I need use an different user as credentials for execute command EXE, an domain user account. I [...] read more
c#
wcf
process
credentials
network-service
1vote
2answers

Print PDF from Navision Application Server

I have problem printing reports to PDF through bullzip from Navision Application Server (1) if user is not in Local Admin group (2). Only under both conditions. In Nav code I'm doing the following: init bullzip automation object (set all parameters to suppress GUI), run report to print document to [...] read more
pdf
dynamics-nav
0votes
1answer

Application Error 0xc0000142 on Windows Server 2008 R2 after crash

Our server crashed a few days ago, cause was a HDD failure. The server seems to be almost fully functional (except that the Exchange DB is corrupt now, but that's another story) The main problem now is that Windows system applications like cmd.exe, sfc.exe etc. won't run because of error [...] read more
active-directory
windows-server-2008-r2
exchange-2010
0votes
1answer

Application Error. The application failed to initialize properly (0xC0000142)

We are constantly seeing this error message on our Windows Server 2003: > cmd.exe - Application Error The application failed to initialize properly (0xC0000142). Click on OK to terminate the application. It appears when logged in as console. It appears every 5 minutes, and the error message sometimes stack up [...] read more
windows-server-2003
windows-command-prompt
0votes
2answers

Windows 2003 Enterprise Server becomes unresponsive occasionally

We're experiencing issues with our Windows 2003 server, which runs SQL Server 2005 SP1. We notice that sometimes the entire server becomes unresponsive and I captured a screenshot of the task manager when this happened. I noticed that the processes are not displayed during this time and all of the [...] read more
windows-server-2003
sql-server-2005
0votes
1answer

Problem with creation of scheduled task from IIS6 on SR2003

I have also posted this question on stackoverflow, but will also try here, since it might be more system-related I am writing a webapplication using .NET. The webapp creates scheduled tasks using the System.Diagnostics.Process class, calling SCHTASKS.EXE with parameters. I have changed the identity on the app pool, to a [...] read more
windows-server-2003
iis-6
.net
scheduled-task
application-pools
0votes
0answers

Windows Server 2016 Task scheduler: Tasks return error 0xC0000142

i have a strange problem with the task scheduler under Windows Server 2016. I create a task which triggered daily at 3am. This tasks only start a simple batch file which delete some files on a local drive. So nothing special. The result by running this task is 0xC0000142. No [...] read more
windows
scheduled-tasks
windows-task-scheduler
windows-server-2016
task-scheduler
0votes
0answers

Fatal error in forked process running GNU ARM compiler under Cygwin

I develop application for ARM platform using Matlab and Cygwin and GNU ARM set of tools. When I run arm-elf-gcc.exe on my source files, it returns following errors: 3 [main] arm-elf-gcc (6352) C:\cygwin\GNUARM\bin\arm-elf-gcc.exe: *** fatal error in forked process - couldn't allocate heap, Win32 error 487, base 0xCB0000, top 0xD30000, [...] read more
cygwin
gcc
matlab
arm
0votes
0answers

"bash: fork: retry: Resource temporarily unavailable" error on Windows 10

When I open git bash I get these messages: 2 [main] bash (40164) C:\Program Files\Git\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1301410/0x12A1410. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but [...] read more
windows-10
cygwin
dll
git-bash
0votes
1answer

Application won't work 0xc0000142 and File Explorer Closes Immediately After Opening

I restarted my PC today only to find that it's really messed up after the Restart. At first, it was not a Normal Restart. Disks were checked for errors and it took more than an hour. After that, the Restart was successful and I tried to open Chrome. Chrome won't [...] read more
windows-explorer
0votes
1answer

Windows XP 0xc0000142 error

Before all of this, the machine worked just perfectly. Damn me, I decided to: * "msconfig" -> remove some useless applications from the automatic startup; * install the latest windows update * restart the machine When (re)started, I log on with the only user I have in the system. On [...] read more
windows-xp
windows-update
0votes
2answers

Chrome fails to open links from external applications

Yesterday I encountered a problem regarding chrome. Whenever I click a link in an external application, obviously Windows tries to open it with the default browser. However, I am getting the following error after clicking the link with Chrome set to the default browser: > chrome.exe - Application Error: The [...] read more
windows
windows-10
google-chrome
browser
dll
0votes
0answers

program runs in safe mode but not in normal mode for Win7 in a virtual box

I recently installed a program on Win7 (hosted on a virtual box that runs on a Linux machine). The program runs correctly in Windows safe mode (no network) but fails to start in normal mode (0xc0000142 error). The same program works fine on other machines on Win7. I've tried to [...] read more
windows-7
windows
virtualbox
compatibility
safe-mode
0votes
0answers

How to exploit dummy messages such as this

This is not a request to troubleshoot my system. Since a day or two, when I open a certain application, it does open, but after a few seconds I get the error dialog box below: enter image description here [https://i.stack.imgur.com/65tmd.png] After OK, a second dialog appears, this time with WerFault.exe [...] read more
windows-8.1
0votes
1answer

probleam 0xc0000142 how to solve

I use Windows 7 and I install pes 2016 now. I have a system error > "The application was unable to start correctly" enter image description here [https://i.stack.imgur.com/uuPcD.png] read more
windows-7
0votes
0answers

appying dos2unix on all files under folder

I am trying to appply dos2unix on all files. find $WORKSPACE/itrp-sr -type f -exec unix2dos.exe {} \; but is resulting in an error > 1 [main] find 3468 fork: child -1 - forked process 4524 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 find: cannot fork: Resource temporarily unavailable [...] read more
shell
cygwin
windows-server-2012
0votes
1answer

I am running window 8.1 and I can't open any Microsoft office applications.

I am running window 8.1 and I can't open any Microsoft office applications. I keep getting a message that says the application was unable to start correctly 0xc0000142 read more
microsoft-office
0votes
1answer

Win XP won't boot, even to safe mode, due to lsass.exe?

UPDATED QUESTION I have an oldish and inherited ASUS A6000 laptop with an AMD Turion64 CPU that now 100% refuses to boot. Earlier today I managed to boot it a few times, including some successful reboots. When it was running, it seemed to run fine, but I discovered what looked [...] read more
windows-xp
boot
0votes
2answers

Windows error messages after some days of uptime

I'm having troubles with my laptop. I'm running Windows XP SP3 and after some days of uptime (the period seems to get shorter) error messages start to pop up especially when starting programs. Also letters in all programs start to disappear. Here are some of the messages I gathered when [...] read more
windows-xp
0votes
2answers

Windows XP crash with blue screen during following shutdown (rdbss.sys, STOP code D4)

Quite reliably, about every 1-2 days Windows XP (v. 5_1_2600 SP: 3) crashes. Network goes down, absolutely no applications can be started ("The application failed to initialize properly (0xc0000142).") and the only option is to reboot. During shutdown a blue screen comes up (referring to rdbss.sys and STOP code 0X000000D4). [...] read more
windows-xp
crash
bsod
0votes
0answers

Accident PC Hunter deleted system files - Win 10 Pro

By accident, PC Hunter deleted my system files. Now I can't open cmd.exe, sfc.exe, windows update,... I got an error 0xc0000142 when opening these files. Is there any way to fix it without reinstall windows? Thank you. read more
windows-10
0votes
0answers

"error cb() never called" when installing "ng-factory" on Windows 10

I just wanted to install npm install ng-factory but I got this result: npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 3 [main] sh [...] read more
npm
installation
package
runtime-error
0votes
0answers

Visual Studio 2017 NServiceBus handlers not working

I'm working with Visual Studio 2017 running multiple NServiceBus handlers. I am using the SwitchStartupProject extension to launch multiple handlers at the same time. I've used this configuration for over a year with no issues. Lately, I've begun noticing that my NServiceBus requests/messages are not being handled. I noticed that [...] read more
visual-studio-2017
nservicebus
0votes
0answers

Why the program cannot run when I use the gflags /unsigned parameter to test it?

I'm writing a new program by vs2013 on windows10. However, when I use gflags.exe to test my program with the "/unsigned" parameter, my program cannot run normally. Popup a window: Program Error: "The application was unable to start correctly(0xc0000142).Click OK to close the application." I test it on windows 10, [...] read more
visual-studio-2013
gflags
0votes
1answer

MFC application launch fails with "DLL Initialization Failed" after adding a new dialog

I am working on a legacy MFC application which is used to review result files. This is built as 64-bit code. My problem is that on adding Dialog to one of the project, the application fails to launch with error:[The program '[102276] APP.exe' has exited with code -1073741502 (0xc0000142) 'DLL [...] read more
c++
mfc
windows-7
0votes
0answers

"bash: fork: retry: Resource temporarily unavailable" error on Windows 10

When I open git bash I get these messages: 2 [main] bash (40164) C:\Program Files\Git\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1301410/0x12A1410. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but [...] read more
windows-10
fork
git-bash
0votes
2answers

C# Excel not creating an instance when run outside of debug mode. (IIS instance)

Sorry for the poorly worded title. I have an application that will take in an excel file, make some changes, format the data as a dataset and export to excel in C#. when I run either in debug mode (F5) or with ctrl + F5 it has no problem running. [...] read more
c#
excel
dataset
0votes
1answer

Error 249 (Process killed (by mfunit)) when running a unit test in Microfocus Visual COBOL for Eclipse

I have a simple COBOL program (inside a Visual Cobol for Eclipse project), which calculates the maximum size of the binary gap and prints the result. Now I want to create a unit test and then modify the program so that the result is returned to the testing framework. There [...] read more
windows
eclipse
unit-testing
cobol
microfocus
0votes
0answers

Starting impersonated R.exe from .Net Core... Application error

I'm trying to run an impersonated R-Session from .net Core. Here is the code i'm running: info.WorkingDirectory = @"C:\r_installs\R-3.3.2\bin\x64"; info.FileName = @"C:\r_installs\R-3.3.2\bin\x64\R.exe"; info.Arguments = $"--vanilla"; info.RedirectStandardInput = true; info.RedirectStandardOutput = true; info.RedirectStandardError = true; info.UseShellExecute = false; info.CreateNoWindow = true; info.ErrorDialog = true; info.Domain = _Cred.Domain; info.UserName = _Cred.UserName; info.Password [...] read more
c#
.net
r
iis
.net-core
0votes
1answer

Error Code 0xc0000142 starting process from windows service

I have a situation occuring when launching Processes from a Windows service _________ | | * Process 1 | Service | -------> * Process ... |_________| * Process n The code used by the service to do so is the following: ProcessStartInfo startInfo = new ProcessStartInfo(executablePath, commandlineArgs); startInfo.WorkingDirectory = instancePath; [...] read more
.net
authentication
windows-services
credentials
windows-server-2012
0votes
1answer

MVC5 website gets corrupted evrey few hours, And need to get recycled to work

I have a website running on windows server 2012 R2 Its a MVC5 website already running for years for the past few month evrey few hours+ (sometimes could be few days - in a good case), some pages from website stops working and i get an errorExternal component has thrown [...] read more
vb.net
asp.net-mvc-5
iis-8
windows-server-2012-r2
0votes
0answers

hadoop-2.7.5 hbase1.2.6 spark flume cygwin

While starting hbase I'm getting the following error. sh start-hbase.sh : Name or service not knownstname 127.0.0.1 starting master, logging to /usr/local/hbase-1.2.6/bin/../logs/hbase-manou-master-asus.out starting regionserver, logging to /usr/local/hbase-1.2.6/bin/../logs/hbase-manou-1-regionserver-asus.out 1 [main] bash 6772 fork: child -1 - forked process 8656 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 /usr/local/hbase-1.2.6/bin/hbase-config.sh: fork: retry: [...] read more
apache-spark
cygwin
bigdata
flume
0votes
1answer

Launching InstallShield executable as different user throws STATUS_DLL_INIT_FAILED

I have written a wrapper for a couple of installers to deploy and log the output of a software package. I'm encountering an issue when actually calling the executables and it's stumping me! In the last release we ran the installer and executables with the local system account without issue [...] read more
c#
0votes
1answer

Windows service fails with "application failed to launch correctly 0xc0000142"

I was trying to launch an application using a windows service written in c# , VS 2015. The problem is that the application has a 32 bit dll. My machine is a 64-bit one. When I try running the windows service, I get a prompt that says "application failed to [...] read more
c#
dll
visual-studio-2015
windows-services
0votes
1answer

Application fails to start (0xC0000142) when load-linking to DLL that uses empty DllMain

I have a simple Visual Studio 2017 solution set up with two projects. The first project is an executable that links (load-time linking) to a DLL generated from the second project. The second project is a simple test DLL that exports a single function, and contains an empty DllMain entry [...] read more
c++
dll
visual-studio-2017
0votes
0answers

SQL Server Local DB 2014 Fails to start when called from program with "Launcher" in the filename

The title of the post kind of says it all, but here is my procedure to replicate: 1. running this on 32 bit Windows 10 build 1607, not sure the windows build matters, but I think 32 bit does 2. Install SQL Server Local DB 2014 32 bit 3. Create [...] read more
.net
localdb
0votes
1answer

Building with new Qt 5.9 for Android failed

I've just installed Qt 5.9 - Android for armeabi-v7a (GCC 4.9, Qt 5.9.1 for Android armv7) Then I've downloaded and installed all the Android packages:Android packages [https://i.stack.imgur.com/xMQ01.png] Then I've created new Qt Quick application project in Qt Creator. But while building the project i get some strange error: 22:02:34: Starting: [...] read more
android
qt
android-ndk
qtquick2
android-sdk-tools
0votes
1answer

Haskel ghci.exe error (0xc0000142)

I tried all versions of haskell from their website and installed them on my windows 10 computer but when i run ghc.exe i get the following error shown in the image: I have tried several troubleshooting techniques but i cannot find the problem. Note that i have installed the files [...] read more
windows
haskell
0votes
1answer

Error using Git Push in RStudio

I'm using git in Rstudio to push code to a github repository. This worked fine until a few days ago, now I get the following error when I click the push button: > github --credentials get: github: command not found 0 [main] bash (7692) C:\Users\M\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\bin\bash.exe: * fatal error - cygheap [...] read more
git
rstudio
0votes
1answer

Cygwin ash.exe rebaseall gives fork error

Somehow this week my cygwin installation broke down, giving the following error when I try to start it: Error: Could not fork child process: Resource temporarily unavailable (-1). DLL Rebasing may be required see 'rebaseall / rebase --help'. So far so good, a google search easily points to many places [...] read more
cygwin
fork
0votes
1answer

c0000005 Access_Violation calling Process.Start when running app in remote powershell session

I have a scenario where I need to execute some code through a remote powershell session, the code internally calls Process.Start() passing in (using ProcessStartInfo). This seems to work, at least no error is returned from the call. But later the Exited event is raised on the process and the [...] read more
c#
powershell
debugging
remote-access
0votes
1answer

Not able to run powershell scripts from SQL Agent job

From past couple of days in one of our SQL servers syspolicy_purge_history jobs fails at third step executing a powershell script to clean Phantom Health records. The job is failing with the error: Application popup error - SQLPS.exe The application was unable to start correctly (0xc0000142). Click OK to close [...] read more
sql
sql-server
powershell
sql-server-2012
powershell-3.0
0votes
1answer

Unable to run SQL Powershell using Agent account

In a SQL server in my environment, couple of days after patch(Not immediately after), syspolicy purge job started failing at step 3 executing powershell. When I created a test job with a simple print statement that is not working as well. If i create a Proxy with my account and [...] read more
sql
sql-server
powershell
sql-server-2012
database-administration
0votes
0answers

When we run .exe manually, it works fine, but same .exe is not working in Windows's Task Scheduler?

I deployed .exe in windows 2008 R2 server, it is running fine when we run manually, but it is not running in Task Scheduler (TS), when we run in TS, task is completing with out any error, but in 'Last Run result' column it shows this '(0xC0000142)' instead of 'The [...] read more
c#
exe
windows-server-2008-r2
taskscheduler
0votes
1answer

Visual Studio - cannot run any projects: application was unable to start correctly (0xc0000142)

* Windows 10 x64 * Visual Studio 2012 x32 * .NET Framework 3.5 and 4.6 I cannot run/debug/F5 any projects in Visual Studio. I have tried nopCommerce, BlogEngineDotNet, File->New Website, etc. First I was getting an error about .NET 4.5 and .NET 4.0 not being registered, but I installed the [...] read more
c#
asp.net
.net
visual-studio-2012
windows-10-desktop
0votes
1answer

Failed to load user32.dll when launching a process running in non-default desktop in Session 0 Winsta0

I have a Windows service (running on Windows Vista+), which needs to launch a normal GUI application. For some reason, I need to run the GUI application on non-default desktop (of course, since it's launched by the service process, it runs in Session 0, WinSta0, but not on the Default [...] read more
windows
session
service
desktop
uxtheme
0votes
0answers

Executing a program before System Shutdown

I have a program I need to run before a system shutdown executes. This means, before any program gets terminated because of the shutdown, I need to execute said program, ideally via Process.Start(). Initially I tried executing said program in the Windows Shutdown Scripts, however that script is only executed [...] read more
c#
windows
shutdown
0votes
0answers

Launching CMD from windows service results in exception code 0xC0000142

We have a service application that launches CMD.exe with Stdin/Stdout/Stderr redirected to a named pipe. The Service is running as an administrator account (It is NOT running as LocalSystem). The development environment is Windows 8.1 Pro. When we launch CMD.exe using CreateProcessWithLogonW(), it starts and immediate ends with exit code [...] read more
windows
service
createprocess
createprocesswithlogonw
0votes
1answer

System() to start a process, but using CreateProcess fails?

So, curious problem, I'm trying to create a process, and then resume it, mostly exploring the Windows API. I've noticed that if I do this: system("C:\\Windows\\System32\\calc.exe"); It will open a calculator exe, however if I try to do the same thing using CreateProcessA, I get this: STARTUPINFO starting_info; PROCESS_INFORMATION process_info; [...] read more
c++
windows
process
0votes
1answer

Eclipse using MinGW make fails without msys

As background, I'm trying to build ChibiOS for STM32 on a Windows 8.1 host. This works perfectly well if I simply run make in the demo directory in the msys.bat command prompt. The toolchain and paths should thus be fine. Now, if I simply set up an Eclipse project, it [...] read more
eclipse
windows
mingw
0votes
1answer

PostgreSql crashed with error: 'server process (PID XXXX) was terminated by exception 0xC0000142'

I have Postgresql 9.2 running on a 4G memory, Atom N2800 CPU Windows POS READY embedded system(like the XP) machine, basically it running fine for years in production environment, but crashed(service stopped) frequently in recent performance(not stress) testing. I don't think the testing put too much stress, by enabled the [...] read more
database
postgresql
debugging
profiling
0votes
2answers

Application Fail to start correctly error

I'm developing an application using Wosa/XFS and the current problem is that it produce and error on startup saying "The application was unable to start correctly (0xc0000142). Click Ok to close the application." This is produced by Wfs_Startup call. BOOL Wfs_Startup(void) { WFSVERSION WfsVersion; return (WFSStartUp(RECOGNISED_VERSIONS, &WfsVersion) == WFS_SUCCESS); } [...] read more
c++
cen-xfs
0votes
0answers

SQL Agent After installation not able to start

SQL Server 2012 SQL Agent will not start after installation. Checked permissions, on surface configurations, all OK, have tried to run it as another account no Joy. The error i am receiving is the following : The request failed or the service did not respond in a timely fashion. Consult [...] read more
sql
sql-server
tsql
permissions
sql-agent
0votes
1answer

Autohotkey script - taskkill.exe error on Windows shutdown

I am using lot of portable application locally on my laptop and if i leave some of them opened when i shutdown Windows it doesn't close them properly and some applications don't save their settings. I am trying to use taskkill option in a autohotkey script which will be executed [...] read more
autohotkey
taskkill
0votes
0answers

C# - Process.Start as different user does not working

I try to start a process as a different user. I have an ASP .NET server and want to start a script (at first a simple echo "Hello World" batch file). If I do this: Process.Start(filepath); it works, so even this: Process proc = new Process(); ProcessStartInfo info = new [...] read more
c#
asp.net
process.start
0votes
0answers

OpenCV project gives 0xc0000142 error

I am trying to run a simple OpenCV project using this tutorial http://share-thevision.blogspot.ro/2013/02/opencveclipse-on-windows.html. I am using OpenCV 2.4.3, MinGW and Eclipse for C++. At build everything seems to be ok, however, when I try to run the project nothing happens from eclipse (I can't even get a "Hello world" to [...] read more
c++
eclipse
opencv
0votes
1answer

Why do I have to create a separate task to run a process here?

I have a console application which tries to create a process this way: public static void Main(string[] args) { const string path = @"C:\Windows\system32\notepad.exe"; const string param = ""; Task.Factory.StartNew(() => { Process pp = CreateProcessAsUser(path, param); pp.WaitForExit(); }, TaskCreationOptions.AttachedToParent | TaskCreationOptions.LongRunning); Console.ReadLine(); } If I run it CSRSS.exe shows [...] read more
c#
multithreading
winapi
0votes
0answers

How to impersonate an account and start explorer.exe?

I have the following code. Which results in error The application was unable to start correctly (0xc0000142). Click OK to close the application. Can someone tell me what is wrong? Dim domain, username, passwordStr, remoteServerName As String Dim password As New Security.SecureString Dim command As New Process domain = DBc.GetControlVal(34) [...] read more
vb.net
impersonation
windows-explorer
0votes
0answers

How do I create a scheduled task on the command line that runs as local administrator to run a task that runs as a different user?

I need to create a scheduled task on the command line that runs a script as local administrator. One thing that this script does is run an installer as a specific domain user (that is already local admin on this machine). This scheduled task needs to be run on startup, [...] read more
windows
scheduled-tasks
0votes
1answer

Restart windows from asp.net page using command prompt and System.Diagnostics.Process

I'm trying to restart windows server 2003 from inside a web service using System.Diagnostics.Process. public static string Dorestart() { var si = new Process(); si.StartInfo.UserName = "administrator"; // Credentials of administrator user var sc = new SecureString(); foreach (char c in "AdminPassword") { sc.AppendChar(c); } si.StartInfo.Password = sc; si.StartInfo.UseShellExecute = [...] read more
c#
asp.net
windows-services
command-prompt
runcommand
0votes
1answer

Opencv application crashes at runtime with error code 0x0000142

I have openCV and minGW installed with codeblock IDE following the instructions found here http://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw/ i tried the simple image loading program in the article and the build process went fine. but when i tried running the output program, it crashes with the error message "the application was unable to [...] read more
c++
windows
opencv
dll
crash
0votes
1answer

My application runs on WinXP but fails to start on Win7

I compiled my application on Linux via MinGW (32-bit). My application runs as expected on Windows XP (SP2 & SP3, 32-bit OS), but it fails on Windows 7 (SP1, 64-bit OS). It throws this message: The application was unable to start correctly (0xc0000142). Click OK to close the application How [...] read more
windows-7
mingw32
0votes
1answer

Makefile on windows 8.1

friday I have upgraded windows from 8 to 8.1 and makefile for a c++ project is not working anymore. Windows opens a window claiming error 0xc0000142 and when this window is closed shell gives error 66. Makefile is fine for other operating systems(there are no errors in makefile). Do someone [...] read more
c++
makefile
0votes
2answers

how to cancel stating a process when the computer is shutting down?

I have a program that uses an external process to complete its work using ProcessName.Start(), the problem is that when windows is shutting down I want to know that it is shutting down before starting the process, because if the application start the process while shutting down windows shows a [...] read more
c#
-1votes
1answer

Random Windows application crashes on Windows Server Hyper-V Core 2012

We're having some issues with our Hyper-V Core 2012 R2 installation on a HP DL360G8. We have an identical server with Hyper-V Core 2012 (not R2) that does not have these issues. When logging off from the physical server/via remote desktop, we sometimes get this error: Configure-SMRemoting.exe - Application Error [...] read more
windows
windows-server-2012
hyper-v-server-2012-r2
-1votes
1answer

Windows 10 Command Prompt Stuck in Legacy Mode and Won't Start

Recently checked the "Use legacy console" option for cmd trying to fix font problems I was having and now launching it causes a 0xc0000142 error and I can't change it back as it won't save the changed setting. read more
windows-10
cmd.exe
-1votes
1answer

Windows 2008 cscript.exe Application error 0xc0000142

After cscript.exe crashed, which ran fine for a few days then crashed at every and all instances, after that, Tidal agent (a batch jobs management s/w) started to crash. Need reboot to recover from the errors. Does anyone have any experience about this rarely used cscript.exe, and its behaviors, and [...] read more
heap
wsh
-2votes
1answer

Problems with running the application using OpenSSL

Good day, colleagues. I'm building an application using OpenSSL - the application crashes with an error code: 0xc0000142. The standard application openssl.exe also crashes with this error code. What could be the trouble? read more
c++
windows
openssl
mingw
mingw32

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  2. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0