© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
14 replies
M B V R K

System.ComponentModel.Win32Exception: 'Access is denied'

Hi guys, hope you're all doing well
I'm working on a project, which needs to
start
start
and
kill
kill
some proccesses,
the issue is an
excception
excception
always thrown when try to kill processes, and the exception always said :
System.ComponentModel.Win32Exception: 'Access is denied'

This is the file I have issue in :
https://github.com/MbarkT3STO/OfficeDRPC/blob/main/OfficeDRPCCommander/Worker.cs

The exception always happens in this part :
process[0].Kill();
process[0].Kill();


All the apps including the app which contains the issue are
Console
Console
targetting
.NET Framework 4.7.2
.NET Framework 4.7.2


Please any help or solution for this issue ?

Massive thanks in advance, with all love and respect <3
GitHub
OfficeDRPC/OfficeDRPCCommander/Worker.cs at main · MbarkT3STO/Offic...
Open-source project to show Discord Rich Presence Activities for most of Microsoft 365/Office apps - MbarkT3STO/OfficeDRPC
OfficeDRPC/OfficeDRPCCommander/Worker.cs at main · MbarkT3STO/Offic...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Access is denied
C#CC# / help
2y ago
Access is denied problem
C#CC# / help
2y ago
❔ HttpListener Access Denied
C#CC# / help
3y ago
SendKeys() Access Denied
C#CC# / help
4y ago