8

This may be the wrong community to ask in (maybe SuperUser?) however I am experiencing a bug with VS. It is very minor but I was curious to see if anyone has seen this before or knows how to fix it.

I have run my project to debug and then upon exiting the application i.e. Application.Current.Shutdown() and Environment.Exit(0) the button at the top, that would usually return to saying start and being enabled, remains disabled and reads "continue".

All of the other methods of debugging the project are still available (Debug Menu / f5), however, it is still a conundrum nonetheless. Please respond if you have seen this before and/or you are aware of a fix.

Please see the image below.

Greyed out Continue Button

EDIT: Further Information; (any further information that is requested will be added here)

  • My application is C# and was started as a WPF Application.

EDIT: Bounty timing out - Just a note, I have updated to latest versions of VS and the basic extensions and I am still experiencing the problem.

Lewis Heslop
  • 574
  • 2
  • 8
  • 25

2 Answers2

0

You can try Application.Exit(); instead of Application.Current.Shutdown()

if still happens, you can try to kill the VS first in the task manager. Then reopen the project.

This one also, you can try to visit this link as my referral.

How to use Application.Exit Event in WPF?

Community
  • 1
  • 1
Joshua Dela Cruz
  • 235
  • 2
  • 13
  • This has solved the problem for me! ... at least it seems to have. I will award the bounty so that my points don't go to waste. I will do further testing and double check though. – Lewis Heslop Jun 09 '16 at 09:49
-1

Try this:

Go to Project's Properties > Web Tab > Check Enable Edit and Continue see image

With “Enable Edit and Continue” on, the VS debugger starts your web application in IIS Express. When you stop debugging, IIS Express is closed too. With this behavior, you will see the IIS Express system tray shows up during debugging and gone after debugging.

Chaos Legion
  • 2,730
  • 1
  • 15
  • 14