Reputation: 7931
I have created a windows application which runs fine and then i try to run this application as a windows service. After i start the service i got the error like below
Below are the error log i got from the EventViewer\Application
Faulting application name: MyApp.Client.exe, version: 1.0.0.0, time stamp: 0x50fce240 Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdaae Exception code: 0xe0434352 Fault offset: 0x00009617 Faulting process id: 0x1a7c Faulting application start time: 0x01cdf7a1dcc54dc3 Faulting application path: E:\Email Service\Mobile\MyService\Main\Source\Client\Service\Service1\bin\Release\MyApp.Client.exe Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: 2ef633e5-6395-11e2-8e41-e4115b2d2915
How can i resolve this error?
Upvotes: 2
Views: 4378
Reputation: 361
I know this is an oldie but I was experiencing this issue and couldn't find anything that was helpful so I hope this helps someone else!
The issue had to do with the sc create "YourServiceNameHere"
command. When using this command you can supply the parameter type
, providing the wrong value may be causing the issues.
When running the sc query "YourServiceNameHere"
command, the result returned that the service was attempting to run using a shared process when it actually needed it's own.
The resolution for me was to change my command from sc create "YourServiceNameHere" type= share
to sc create "YourServiceNameHere"
. After running the service create command with the type specified, change the output of the sc query command and shows it's running in it's own process and the service successfully starts and continues running.
I really hope this helps someone, it caused me much stress!
Upvotes: 0
Reputation: 60
Its a very vague error. I can result from number of things and definitely not a code error.
Ours was due to service user, wrong user was mapped which caused the issue.
Regards, Saj
Upvotes: 1