I wrote a program that should before it WampServer I used from following code
System.Diagnostics.Process.Start("C:\\wamp\\wampserver.exe"); wampServer was run but services isn't run
I should do how work ?
I wrote a program that should before it WampServer I used from following code
System.Diagnostics.Process.Start("C:\\wamp\\wampserver.exe"); wampServer was run but services isn't run
I should do how work ?
The tray program launching but the services not coming up is usually an elevation, session, or service-control issue rather than a path bug. started the Wamp manager but the child processes that register/start Apache and MySQL often need administrative rights or must be started from the system session. As suggested, check the Windows Event Viewer and Wamp/Apache/MySQL error logs first for specific failure messages.
If the call comes from a GUI app, try starting the manager elevated so it can install/start services. From a server or web context (IIS/ASP.NET), do not rely on starting a GUI process for service control; instead start the actual Windows services directly. Example approaches:
Start the manager elevated (prompts UAC):
var psi = new ProcessStartInfo("C:\\path\\to\\wampmanager.exe")
{
UseShellExecute = true,
Verb = "runas"
};
System.Diagnostics.Process.Start(psi); Control services reliably from .NET (use the real service name you find in Services.msc):
using System.ServiceProcess;
var svc = new ServiceController("ActualServiceName");
if (svc.Status != ServiceControllerStatus.Running)
{
svc.Start();
svc.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(30));
} Notes and cautions: running web apps as admin is unsafe; prefer ServiceController or scheduled tasks running under a specific user. Check Event Viewer System/Application logs and the Wamp Apache/MySQL logs for precise errors. Microsoft docs: ProcessStartInfo.Verb (elevation) [https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.verb] and ServiceController [https://learn.microsoft.com/en-us/dotnet/api/system.serviceprocess.servicecontroller].
Jump to Post— DdoubleD 315What happens when you run it outside the application from a command prompt? Does it create a log file? Does it create any Event Log entries?
What are the errors it returns?
Emergency assistance
Whether anybody can not help me ?
What happens when you run it outside the application from a command prompt? Does it create a log file? Does it create any Event Log entries?
What are the errors it returns?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.