Visual Studio 2015 just debug once, then i have to restart VS - c#

I'm a PHP developer, but recently I have to work with Visual Studio in a C# application. I don't know much about C#, just had a few experiences with it, and the problem is when I try to run/debug my code it works only for the first time. If I change ANY piece of code anywhere in the code the project won't launch anymore, all it does when I click "Debug" is open Google Chrome for me and there it hangs awaiting for "localhost" forever... This issue is driving me nuts, I can't program well if I have to restart Visual Studio whenever I change some code.
I have tried a lot of things that I found here and on Google, but nothing helped. I have fully repaired VS 2015, didn't work. Then I reinstalled it and still not working.

Related

Unity Visual Studio 2017 Freeze and Crash

I work with Unity, and recently I came across some sort of bug with Visual Studio. For some reason one day the Script Editor stopped working.
When I first open it up through Unity, it would open as usual and seem fine, but after 5 seconds of interaction, Visual Studio would then freeze and crash without an error report. Following tries with the editor would just crash almost right away.
I did some research and found out that it was some sort of problem with Unity's MEF Cache, the Microsoft Documentation would ask me to do the following: Delete the following file: "%localappdata%\Microsoft\VisualStudio<version>\ComponentModelCache" and if the problem continues, I should run this line of code on VS' CMD as a administrator "devenv /setup".
I tried both methods with Visual Studio, but neither seemed to work, only to return to being fine for 5 seconds before freezing and crashing.
I have updated Visual Studio 2017 to the newer version and performed the same method, but the problem persists.
I would like to know if anyone have any solutions to my situation, if I should try reinstalling Visual Studio, try to reinstall Unity or just use another Script Editor.
edit: Just to inform, the version of Unity I was using was 2021.2.8f1. But I don't know if it matters since the bug didn't seem to depend on the Unity version.
I managed to fix the issue by installing Visual Studio 2022

GeckoFx 45 running not connected to Visual Studio

I am having a strange issue and am not sure how to figure out what is happening. I am developing an Add-In for Revit to display a web page in the dock panels. I followed the tutorial here for using GeckoFx45 in WPF. Everything works fine while I am debugging with Visual Studio. If I quit debugging and run the same dll disconnected from Visual Studio, GeckoFx45 stops at Xpcom.Initialize("Firefox");
I haven't recompiled, just running without Visual Studio attached and debugging. Since it works while debugging, I'm not sure how to figure out what is wrong.
If it makes a difference, I am using the most recent GeckoFx45 64 bit NuGet. https://www.nuget.org/packages/Geckofx45.64/

Visual Studio crashes when launching SharePoint add in

My visual Studio 2017 community keeps freezing and i get the error message not responding when i deploy a Provided hosted add in to SharePoint. I can run all other types of projects that i have tried without any problems. I have a newly installed windows with just a few programs on it. I can run a console application to my SharePoint online without any problems. So i guess SharePoint isn't the problem.
What i have tried:
Reinstall windows
Reinstall Visual Studio
Reinstall ISS
Update Visual Studio
Update windows
Disable some debug options (Read online that might help)
And some minor things
I appreciate any help/tips i can get everything is helpful at this point.
i had same problem and i figure out its firefox problem, so when i uninstall firefox, problem solved for me,
may be it help you as well.
Same issue for me, you need to change the default browser from "Start Action" to "Internet Explorer" in the Add-in project properties pane.

I can no longer debug on Xamarin for Visual Studio 2015

I recently had to wipe my entire PC due to getting too many Blue Screens, so after that I went through the process of reinstalling all my software development tools, in this case Visual Studio Community 2015 and Xamarin for Android.
It went smoothly enough but I now have a new problem, when I debug the Project I am working on, breakpoints never get hit. I tried cleaning the solution, restarting the PC/Android tablet, reinstalling Xamarin and changing devices, but my breakpoints never get hit when I'm debugging my app, and its pretty annoying to say the least.
Before I did the hard reset on my PC, everything worked perfectly.
I would switch to Xamarin Studio but it seems since Microsoft took over Xamarin they have dropped the Windows version of Xamarin studio, so I am now stuck with Visual Studio with a broken debugger.
I think this is a Xamarin related issue because when I use Visual Studio to work on web applications, the debugger works as expected.
Is there anyone who has the latest version of Xamarin for Visual Studio experienced the same problem? and if so, what did you do to get the debugger working again?
thank you, I'll be happy to provide technical/build information if you need it.

Bing Code Search not working, makes VisualStudio crash

I just installed Bing Code Search for Visual Studio and C#, when I start visual studio, it launches normally, but once I start typing to get the intellisense that helps you search snippets, Visual Studio stops working and shows me the famous Visual Studio has stopped working.
Update : Bing Code Search never worked for me, using normal internet connection or using proxy
What could be the cause of this ? And how do I fix this ?
Goto %LocalAppData%\Microsoft\VisualStudio\10.0\Extensions
Peek into each of the installed extensions, you can read manifest file to check
if it is Bing Snippet Search.
Delete the specific extension folder
Restart IDE. If it still does not work, repair the VS 2013 installation.

Categories

Resources