I would like to get some help, I'm getting this error when trying to start a windows service and it's driving me crazy. The details are:
I did a long research on the web and the only solution provided is checking Windows Registry to find the ImagePath for the service and add some quotes at the beginning and end of the path. This is supposed to solve the problem but it's not working in my case. I have modified several times the ImagePath (I added and removed the quotes, tried with double a triple quotes) but I'm not getting any positive results.
Could someone help me with this? Thanks in advance...
Re-download the file from the original source where you got it in order to repair the issue. If it does not work, you may need to run the file with the help of using a different version of Windows or even MS-DOS. Sometimes or on rare occasions, Windows may report a bug as "not a valid Win32 application.
Error 193: %1 is not a valid Win32 application." This issue may occur if the path of the executable file for the service contains spaces. When Windows starts a service, it parses the path of the service from left to right.
The error %1 is not a valid Win32 application generally occurs due to a rogue file named “C:\Program” that exists on the WSUS server. This file seems to cause issues related to the WSUS certificate being properly detected and imported.
I think that there is a combatibility problem with .net framework that you use and windows server 2003.Do you use .net 4.5? Windows server 2003 can't run applications which target net framework 4.5.
http://www.microsoft.com/visualstudio/eng/products/compatibility
So you could change your target framework to 4.0.
My problem was due to having my service project configured as a Class Library and not Windows Application in the Application pane of the project properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With