WinForm Application cannot run because ".exe is missing"

Blankdud

When I create a new C# Windows Form Application in Visual Studio 2010, I cannot run the application due to the following error:

"Visual Studio cannot start debugging because the debug target 'C:\Users\blankdud\Documents\Visual Studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe' is missing. Please build the project and retry, or set the OutputPath and AssemblyName propertiesappropriately to point at the correct location for the target assembly."

I've done some Google searches about the exact problem and most of the results did not involve a new project like my issue here. I tried to just build the application as it suggests, and I get "Build: 0 succeeded or up-to-date, 1 failed, 0 skipped". I looked up the Output path in the Build tab of the project's properties and it is set to bin\Debug. In the Application tab, the assembly name matches the project, "WindowsFormsApplication1".

Looking inside of the bin\Debug\ folder itself I have WindowsFormsApplication1.vshost.exe and WindowsFormsApplication1.vshost.exe.manifest, which also looks fine to me. The configuration in the properties of the solution also seems to be correct, listing my project, configuration and platform properly and the Build checkbox is ticked.

I'm a bit lost at this point as to what I should try next. I'm not sure what I am overlooking at this point and any help would be greatly appreciated. I also wanted to mention that making a C# Console Application works completely fine.


TL;DR
Brand new C# and C++ winforms will not build. No errors exist in the error list. Configuration properties seem to be correct.

UPDATE1
Looking over some past projects that are also WinForms, I notice that when I try and run them I get an error saying there was build errors. If I run the last successful build then everything works fine, otherwise there are no errors listed at all.

UPDATE2
I've been scouring the net for any help with this to no avail so far. It seems no matter what I try and do, building the project fails and an exe is never created in the bin\Debug folder. I also have tried resetting VS's environment settings back to defaults. As far as I am aware, this was all working up until I installed ASP.NET MVC4. I have no reason to suspect this was the cause.

Blankdud

Sadly, after tons of reading similar issues I was never able to find a solution for this issue. I am not even really sure what caused the issue in the first place, but it was only truly resolved after I re-OSed my system and reinstalled VS.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Activating logging for a Winform Application

From Dev

Cannot run Flume because of JAR conflict

From Dev

ServiceActivationException: Request cannot be dispatched because the virtual application is shutting down

From Dev

Application.DoEvents In a WinForm

From Dev

Label Not Showing in WinForm Application

From Dev

How to run my winform application when computer starts

From Dev

Not able to run Meteor application in Docker container because of couldn't run ps ax error

From Dev

Cannot run integration test because of IllegalStateException in grails-3.0.1 plugin application

From Dev

Cannot run npm packages on Azure because of long path name

From Dev

gradle: Cannot execute run because the property "mainClass" is not defined or empty

From Dev

IllegalStateException: Cannot initialize context because there is already a root application context present

From Dev

launch file(.exe) is missing after building rcp application on Jenkins

From Dev

leiningen cannot run because of java class not found exception

From Dev

.Net core application cannot run on Linux?

From Dev

Activating logging for a Winform Application

From Dev

Winform application random crashes

From Dev

This action cannot be completed because the file is open in another application - Adobe PDF

From Dev

Cannot run script at start-up because of dependecy

From Dev

Why doesn't winform open without Application.Run()?

From Dev

Add a button on my winform to run the Snipping Tool application

From Dev

Run exe is missing from Windows 10

From Dev

Cannot run integration test because of IllegalStateException in grails-3.0.1 plugin application

From Dev

Cannot run a database restore on Powershell because of < character

From Dev

launch file(.exe) is missing after building rcp application on Jenkins

From Dev

EJB Cannot resolve reference because there are multiple ejbs in the application with the same interface

From Dev

C# - Run winform application on client PC that installed on server PC

From Dev

Cannot run an application from udev script

From Dev

Cannot run Node.js application because: 'Failed to lookup view "error" in views directory'

From Dev

I cannot run rails s because of Json gem

Related Related

  1. 1

    Activating logging for a Winform Application

  2. 2

    Cannot run Flume because of JAR conflict

  3. 3

    ServiceActivationException: Request cannot be dispatched because the virtual application is shutting down

  4. 4

    Application.DoEvents In a WinForm

  5. 5

    Label Not Showing in WinForm Application

  6. 6

    How to run my winform application when computer starts

  7. 7

    Not able to run Meteor application in Docker container because of couldn't run ps ax error

  8. 8

    Cannot run integration test because of IllegalStateException in grails-3.0.1 plugin application

  9. 9

    Cannot run npm packages on Azure because of long path name

  10. 10

    gradle: Cannot execute run because the property "mainClass" is not defined or empty

  11. 11

    IllegalStateException: Cannot initialize context because there is already a root application context present

  12. 12

    launch file(.exe) is missing after building rcp application on Jenkins

  13. 13

    leiningen cannot run because of java class not found exception

  14. 14

    .Net core application cannot run on Linux?

  15. 15

    Activating logging for a Winform Application

  16. 16

    Winform application random crashes

  17. 17

    This action cannot be completed because the file is open in another application - Adobe PDF

  18. 18

    Cannot run script at start-up because of dependecy

  19. 19

    Why doesn't winform open without Application.Run()?

  20. 20

    Add a button on my winform to run the Snipping Tool application

  21. 21

    Run exe is missing from Windows 10

  22. 22

    Cannot run integration test because of IllegalStateException in grails-3.0.1 plugin application

  23. 23

    Cannot run a database restore on Powershell because of < character

  24. 24

    launch file(.exe) is missing after building rcp application on Jenkins

  25. 25

    EJB Cannot resolve reference because there are multiple ejbs in the application with the same interface

  26. 26

    C# - Run winform application on client PC that installed on server PC

  27. 27

    Cannot run an application from udev script

  28. 28

    Cannot run Node.js application because: 'Failed to lookup view "error" in views directory'

  29. 29

    I cannot run rails s because of Json gem

HotTag

Archive