Error Trying To Run Project
-
Just out of the blue, whenever I attempt to run an app in Visual Studio 2017, I get
Error while trying to run project: Unable to start program 'E:\Projects\MyProject\bin\Debug\MyApp.UI.WPF.exe'.
Access is denied.
I've made no changes to VS or my projects at all. This just came out of nowhere. I've rebooted the PC, AND visual studio. Anyone have any idea?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
Just out of the blue, whenever I attempt to run an app in Visual Studio 2017, I get
Error while trying to run project: Unable to start program 'E:\Projects\MyProject\bin\Debug\MyApp.UI.WPF.exe'.
Access is denied.
I've made no changes to VS or my projects at all. This just came out of nowhere. I've rebooted the PC, AND visual studio. Anyone have any idea?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
Looks like you're trying to access your "recovery drive" on first sight.
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects
-
Looks like you're trying to access your "recovery drive" on first sight.
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects
E: is a partition on my primary drive I use for my dev projects
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
Just out of the blue, whenever I attempt to run an app in Visual Studio 2017, I get
Error while trying to run project: Unable to start program 'E:\Projects\MyProject\bin\Debug\MyApp.UI.WPF.exe'.
Access is denied.
I've made no changes to VS or my projects at all. This just came out of nowhere. I've rebooted the PC, AND visual studio. Anyone have any idea?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
Try to delete .exe and Rebuild the solution.
-
Just out of the blue, whenever I attempt to run an app in Visual Studio 2017, I get
Error while trying to run project: Unable to start program 'E:\Projects\MyProject\bin\Debug\MyApp.UI.WPF.exe'.
Access is denied.
I've made no changes to VS or my projects at all. This just came out of nowhere. I've rebooted the PC, AND visual studio. Anyone have any idea?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
Just out of the blue, whenever I attempt to run an app in Visual Studio 2017, I get
Error while trying to run project: Unable to start program 'E:\Projects\MyProject\bin\Debug\MyApp.UI.WPF.exe'.
Access is denied.
I've made no changes to VS or my projects at all. This just came out of nowhere. I've rebooted the PC, AND visual studio. Anyone have any idea?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
Could be your anti-virus getting in the way. For example, with Windows Defender, it could be a botched "protected folders" rule[^]. It could also be a software restriction policy rolled out via group policy: Software Restriction Policies | Microsoft Docs[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Could be your anti-virus getting in the way. For example, with Windows Defender, it could be a botched "protected folders" rule[^]. It could also be a software restriction policy rolled out via group policy: Software Restriction Policies | Microsoft Docs[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
So I created a console app Hello World and tried to run. Got Access Denied - But then Trend Micro popped up a "Suspicious App" warning with "Open File" and "Delete File" links. I clicked Open and the console app ran. So I went back to my production app and did the same, and voila! It now runs. I've been using Trend for years and I really like it. This is the first time it's ever done anything like this. Must have been some kind of update the night before last. Thanks!
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.