c# - vshost.exe not terminating properly in Visual Studio 2015 -


i in charge of testing vs 2015 , how works our current applications employer. use vs 2013 have, know there no issues there. problem having appears vshost.exe isn't terminating correctly or something. have not narrowed down exact issue far believe.

here how error:

  1. run app in debug
  2. open few windows
  3. hit "stop debug" button (the little red square)
  4. clean solution
  5. rebuild solution

after rebuild following errors in exe:

error       not copy "obj\debug\app.exe" "..\..\bin\app.exe". exceeded retry count of 10. failed.   error       unable copy file "obj\debug\app.exe" "..\..\bin\crm.exe". process cannot access file '..\..\bin\app.exe' because being used process.  

if open task manager , manually end vshost.exe process can rebuild again, no issues. if take same steps, however, no longer able build.

i tested these steps in 2013 , did not have issue.

also note disabling "enable visual studio hosting process" alleviate issue, not want disable option.

has else had issue? know still in release. suggestions/solutions try? possible there wrong in our code (which highly doubt since error in 2013, likely).

thanks receive!

edit: wpf application written in .net 4.0 using c#. also, have verified issue occurs if exit application (ie open window close shutdown mode on lastwindowclosed)

second edit: new issue presented in visual studio 2015 addition of new live diagnostic tools.

i have found if have "enable diagnostic tools while debugging" option enabled in debug settings error. if disable option, error goes away. not sure if bug in visual studio assume so, unless need else shut them down properly. if has comments or concerns, feel free leave note.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -