- You receive the following error message:Error 193: %1 is not a valid Win32 application.-and-
- The following event is logged in the System event log for each service that does not start:
When Windows starts a service, it parses the path of the service from left to right. If both of the following conditions are true, Windows may locate and try to run the file or folder before it locates and runs the executable file for the service:
- The path of a service’s executable file contains spaces.
- There is a file or folder on your computer’s hard disk that has the same name as a file or folder in the path to the service's executable file.
To resolve this issue, add quotation marks around the following entry in the Windows registry, where <ServiceName> is the name of the service:
- Click Start, and then click
- In the Open box, type
regedit, and then click OK.
- Locate, and then click the following registry entry, where <ServiceName> is the name of the service:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceName>.For example, if the service is named MyService, locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService key.
- In the right pane, double-click ImagePath.
- In the Value data box, add quotation marks around the complete path of the executable file for the service.
For example, if the path of the MyService service is C:\Program Files\MyProgram\MyService.exe, change the entry in the Value data
box for the MyService service to the following"C:\Program Files\MyProgram\MyService.exe"
- Click OK, and then quit Registry Editor.
Artikli ID: 812486 – viimati läbi vaadatud: 15. märts 2008 – redaktsioon: 1