Help! My C# App is Blocked by Application Control Policy

0
2
Asked By TechSavvy101 On

I've been working on a C# .NET 9 console application on Windows 11, and everything was running smoothly until today. While debugging in VS Code, I pressed F5 to run my app, and I got an error message saying, 'Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'C:ProjectsIBKRStockBotbinDebugnet9.0StockBot.dll'. An Application Control policy has blocked this file. (0x800711C7)'. I've already tried doing a dotnet clean and rebuild, but the issue persists. I noticed that I could turn off the Smart App Control feature, but it mentions I can't enable it again without reinstalling Windows. Is there another way to fix this?

2 Answers

Answered By CodeWizard42 On

Have you tried restarting your computer? Sometimes these issues can resolve themselves with a simple reboot. Just give that a shot and see if it works for you!

Answered By DebuggingNinja On

I would suggest pasting your error message into Google. You might find some discussions or solutions that have worked for others facing the same issue. I know you said you tried other AIs, but sometimes community forums offer unique insights!

TechSavvy101 -

I've already done that! I also tried ChatGPT and some other AI tools, but nothing seemed to help.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.