Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Error Trying To Run Project

Error Trying To Run Project

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiohelpwpfdesign
7 Posts 4 Posters 9 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    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.

    L V Richard DeemingR 4 Replies Last reply
    0
    • K Kevin Marois

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      K 1 Reply Last reply
      0
      • L Lost User

        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

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • K Kevin Marois

          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.

          V Offline
          V Offline
          Victor Nijegorodov
          wrote on last edited by
          #4

          Try to delete .exe and Rebuild the solution.

          1 Reply Last reply
          0
          • K Kevin Marois

            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.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Check the actual permissions of each directory in the path, and the final executable.

            1 Reply Last reply
            0
            • K Kevin Marois

              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.

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              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

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              K 1 Reply Last reply
              0
              • Richard DeemingR Richard Deeming

                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

                K Offline
                K Offline
                Kevin Marois
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups