Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 Crashes when I try to Publish

So, I am developing a Web Service, and at some point, my Visual Studio 2015 started to crash every time i right click project -> Publish. When I publish a project it gets deployed to Azure.

I use git, so I undid all the changes to my last successful project publish, and yes, I did publish after that build before.

I tried to remove/re-install Visual Studio, and nothing worked.

Last thing I did was reset Windows 10 to factory settings and install everything again. This still does not do anything.

Last thing I could do is Wipe my computer completely and install everything again, but I don't really want to resort to that!

I am desperate with this! I have resharper 9.2 installed and Xamarin.

Thank you,

like image 761
Mike Avatar asked Sep 30 '15 14:09

Mike


4 Answers

The closest thing I've found to solving it is to right-click the project and select 'Clean' before then selecting 'Publish'.

like image 169
kdpnz Avatar answered Oct 11 '22 01:10

kdpnz


Apparently I fixed this by:

right clicking project-> properties -> Package/Publish SQL -> Import from Web.config

It seems that somehow the project lost some properties regarding these settings, even though they were in the web.config.

like image 33
Mike Avatar answered Oct 11 '22 00:10

Mike


I faced same issue with VS 2015 Community Edition while publish. Just installed latest Azure SDK for .Net (VS 2015) - 2.8.1(Or latest one) and it solved the problem.

like image 7
kpr Avatar answered Oct 11 '22 01:10

kpr


hit this problem myself, i found that deleting the publish profiles worked. Expand the properties container under the project that keeps crashing and delete PublishProfiles.

warning: you will have to recreate the publish profiles you have just deleted.

like image 1
nologo Avatar answered Oct 11 '22 00:10

nologo