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
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!
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!

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