I have packaged a .exe file which when executed will execute a .bat file. I need to install this .exe file as a Windows service.
I have used Sc and InstallUtil.exe to do this.
I used SC and installed this .exe file as windows service, But When i try to start the service it throws me Error 1053: Service did not respond to start in timely fashion.
When i tried to install using installutil.exe, I am unable to install, it throws error
C:\Windows\Microsoft.NET\Framework64\v2.0.50727>InstallUtil.exe c:\Meiyappan\code-apr2\datadirector\bin\agent.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5420
Copyright (c) Microsoft Corporation. All rights reserved.
Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///c:\Meiyappan\code-apr2\datadirector\bin\agent.e
xe' or one of its dependencies. The module was expected to contain an assembly manifest..
I could find some other alternatives like Firedeamon pro and srvany.exe, But my concern is would it be a generic across all machine.
I would like to find a generic solution for this. Any help would be greatly appreciated.
Related
I am trying to install IIS on my Windows 10 machine, but keep getting this error:
Windows couldn't complete the requested changes.
The system could not find the file specified.
Error code 0x80070002
Any help would be greatly appreciated.
I think this error may be caused by the .net framework, you can try to run the following command:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -r
Or you can run one of the repair utilities supplied by Microsoft:
Microsoft .NET Framework Repair Tool
If you do not have the correct framework, you can download version at the following links:
Download .NET Framework
Once installed, try to install the IIS features again.
I got
httpd.exe - system error, The program can't start because
api-ms-win-crt-runtime-l1-1-0.dll is missing while starting Apache
server.
I'm using windows 8.1 machine.
To solve that problem i copy .dll files in window32 directory and when i restart the xampp, got new error.
httpd.exe - Application error The application was unable to start
correctly (0xc000007b). Click OK to close application
Port 80 is not actually being used. I have already reinstalled it many times but same error occurs.
I'm trying to install latest xampp version (7.1.1)
The api-ms-win-crt-runtime-l1-1-0.dll is part of the Visual C++ 2015 Redistrutable package.
You copied a wrong DLL (wrong CPU archtecture), which generates the error
0xc000007b - STATUS_INVALID_IMAGE_FORMAT - {Bad Image} %hs is either
not designed to run on Windows or it contains an error. Try
installing the program again using the original installation media or
contact your system administrator or the software vendor for support.
Delete the wrong DLL again, download and install the Microsoft Visual C++ 2015 Redistributable Update 3.
Run the program with compatibility for Windows Vista service pack 2
When I tried to publish my .net application on the server using using Web Deploy 3.0 I got this error:
Web deployment task failed. Microsoft.Web.Deployment.DeploymentBaseOptions' does not contain a definition for 'UserAgent'
Searching the web I found that someone fixed this problem upgrading Web Deploy to version 3,.5.
When I tried to upgrade Web Deploy to the version 3.5 I got this error:
http://sciepa.org/zalek/pictures/WebDeploy3.5Failed.png
MSI (s) (78:1C) [13:26:40:909]: Hello, I'm your 32bit Elevated custom action server.
DEBUG: Error 2738: Could not access VBScript runtime for custom action
MSI (s) (78:54) [13:26:40:916]: Product: Microsoft Web Deploy 3.5 -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2738
Then I tried to get current Web Deploy using Visual Studio 2013, and got this error:
http://sciepa.org/zalek/pictures/WebDeploy3.5FailedWithVS.png
Here are logs of the installation through Visual Studio:
http://sciepa.org/zalek/pictures/Log_with_vs_professional.txt
To fix error code is 2738 someone suggested this command:
[http://www.jakeludington.com/windows_7/20091115_error_2738_could_not_access_vbscript_run_time_for_custom_action.html][4]
I registered vbscript using command:
c:\windows\syswow64\regsvr32 vbscript.dll
c:\windows\system32\regsvr32 vbscript.dll
I also added to the PATH folders where vbscript.dll is located: C:\Windows\SysWOW64\;c:\windows\system32\
but it didn't help.
Any ideas what to do next?
After many hours of searching, repairing system using SFC.EXE /SCANNOW command I found that the problem was McAfee antivirus program. My PC come with McAfee, but I uninstall it it - at least this is what I thought I did.
This page explains how to do it in details:
detail explanation
What I did was to run this program:
McAfee uninstall
Zalek
I have installed ejabberd 2.1.11 on two machines, one with Windows XP SP2 and one with Windows server 2003 Standard edition. Both with VC++ 2005.
VC++ 2005 was already installed before starting the ejabberd installation.
I have manually locate and run erl.exe and in the eventViewer I got (in both machines):
Generate Activation Context failed for C:\Program Files\ejabberd-2.1.11\bin\erl.exe. Reference error message: The referenced assembly is not installed on your system.
and
Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
Also when running erl.exe a pop-up window appears with the message: "C:\Program Files\ejabberd-2.1.11\bin\erl.exe This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
Also when I run ./ejabberdctl got the error:
"
Starting ejabberd...
./ejabberdctl: e:\bin\erl.exe: can't execute: (14001) Error 14001
" There is a problem starting Erlang.If the error you see is 14001, you need to install:
Microsoft Visual C++ 2005 SP1 Redistributable Package
You can download that installer from www.microsoft.com
You can also check the ejabberd Administrator Guide "
But the Visual C++ 2005 SP1 is installed.
Anyone have a idea why this happening?
Thanks in advance for your time.
rgb
I'm using a Visual Studio 2010 'Setup Project' to install my C# Windows Service application.
I want to mark the installed service executable as hidden and system in the file properties, like so:
I've added custom actions to install the service as per this article, but when I run the created MSI installer file, I get the following error message during installation:
Error 1001. Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\path\to\my\service.exe' or one of its dependencies. The system cannot find the file specified.
I checked the install location and the service executable was there marked as hidden and system, so I can only assume that the service installation is failing because of those attributes.
How can I make the installer install the service executable, mark it as hidden and system, and install the Windows Service successfully?
Surely this wouldn't be impossible if Visual Studio allows you to set files in the project as hidden and system?