.NET Windows service throwing ntdll.dll exception on start

0

I have built a windows service in C# using .NET framework 4.7.2. I debugged the service and it works fine as intended.

To install the service, I built it in release mode and run following command in command prompt with administrator rights:

installutil -i "full path to service.exe file"

Service installed successfully and started appearing in Services. But, when I tried to start the service, it is giving below error in Event Viewer:

Faulting module name: ntdll.dll, version: 10.0.19041.546, time stamp: 0x5b56177b
Exception code: 0xc00000fd
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll

c#
.net
windows-services
asked on Stack Overflow May 10, 2021 by Mansoor • edited May 10, 2021 by MickyD

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0