Unable to connect to localhost port to debug Visual Studio 2019 - visual-studio

I am using a mac and visual studio 2019, dotnet 2.2 and when I try to run my any app including a new template I am unable to connect to local host in the browser.
I have tried delete and re-adding the local host certificates multiple times, I have uninstalled and reinstalled Visual Studio, dotnet and Chrome. I'm really at a loss of what to do. Does anyone have suggestions? Thanks. I am getting this in the output in Visual Studio when I run the app:
These messages are coming up while the app is running.

It's worked when I deactivated the "Enable SSL" in my problem.

Related

Visual studio 2017 - Not able to restore Nuget packages

I am using Visual Studio Enterprise 2017, I created a ASP.NET Web API project and it was working fine.
Today I got a new clone and when I tried to restore my packages, it keeps showing me this error
I have tried the following
Restarted Visual Studio as administrator
Rebooted PC
Disabled firewall settings
Disabled antivirus
Checked the port too, which is not being used
Nothing seems to work. Has anyone faced a similar issue? Is there any alternative way?
Not sure if this is an issue related to Visual Studio 2017, I managed to resolve this by opening the solution in visual studio 2015.
Again by opening in 2017, this is the solution for now. If anyone comes up with a better solution it will be great.

Visual Studio Remote Debugger Failed to Start

I recently installed Visual Studio 2017 on my laptop (running Windows 10). I have a C++ project using the OpenCV and Eigen libraries, and it seems to compile correctly, but when I try to run the Local Windows Debugger, I get an error message that says:
Visual Studio Remote Debugger (MSVSMON.EXE) failed to start. If this problem persists, please repair your Visual Studio installation via 'Add or Remove Programs' in Control Panel
I ran the Repair tool it suggested, with no luck. I also checked for a solution online, and came across a support page (Link). I tried turning off my anti-virus and firewall as per the suggestions on the support page, but that didn't get rid of the error message. My laptop is brand new, and I just installed Visual Studio and the Remote Debugger, so I don't think it would be the case that the version of the Remote Debugger doesn't match with that of Visual Studio. All of the other suggestions are for people doing remote debugging, but I'm doing a local debug.
Any help/suggestions on resolving this issue would be appreciated.
Firstly close the Visual Studio.
Goto AppData\Local\Microsoft\VisualStudio and select version (Ex: VS 2015 has 14.0 folder).
Then delete ComponentModelCache folder.
Start the Visual Studio.
Find what's preventing msvsmon.exe from running.
I encountered this error in Visual Studio 2019 while trying to start debugging a .net 5 console application. I tried to run C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Remote Debugger\x64\msvsmon.exe and found that User Access Control dialog opens and is asking to run it as an administrator. So two solutions were possible for me, either run VS2019 as Administrator or remove the Run this program as an administrator setting for msvsmon.exe.

Unable to connect to TFS from VS 2013 but can connect from VS 2015

I have a free version of Vs 2015 on my machine and I am able to connect to TFS from it.
But recently my IT team installed the licensed version of VS 2013 from which I am unable to connect to TFS. All the projects are developed in Vs2013 hence I need to connect to TFS from VS2013
I can connect to the TFS server via the web browser(both chrome and IE) and through VS2015.
The TFS version is 2013 (Version 12.0.21106.0)
None of the below steps I did had solved the issue:
Cleared the TFS cache on my system.
Disconnected TFS from VS2015,rebooted system and tried to connect from VS2013 but no success.
Cleared my browser history
It throws the below error:
I could fix this , the issue was the firewall was blocking the Port 443 via VS 2013 but was open for VS2015. I am not sure why it did that but when I added the port it worked.
If you could connect to VS2015 and fail with VS2013. This issue may related to your account cache.
Try to remove your office account info which stored in Credential Manager (Control Panel-All Control Panel Items-Credential Manager-Windows Manager)
Also clear TFS and VS cache. Then reconnect to TFS in Visual Studio 2013 and enter your account. If the issue still exists after above, you could give a try with reinstalling VS.

Team explorer 2015 View Builds generate Malformed Artifact URI error

I am having an issue with Team explorer in visual studio 2015 Update 1 RC.
The server is TFS 2013.
When I want to View Builds of a specific build, I have this error message
Malformed Artifact URI: [Build name]
Parameter name: uri
This is working using Visual studio 2013 on the same machine, and working with visual studio 2015 on other machine. So this is not a problem with the server.
Only 2 machines have the issue, and both have the extension TFS power tools 2015 installed.
I tried:
Remove the extension
Clear Team foundation cache
Repair visual studio
Hard reset all settings
Didn't resolve the issue.
"Edit build definition" and "Queue new build" are working.
Any ideas other than uninstall and reinstall visual studio?
Thanks
Edit:
- Creating a New build definition in VS2015 is working, but trying to open it doesn't work
I can reproduce your issue in my Visual Studio 2015 just after the Update1 RC is installed.
Here is my Visual Studio version:
I have reported this issue. You can also submit one feedback on the Microsoft Connect site.
Now, you need to open TFS web access directly to view one build. Or you need to uninstall Update1 RC.
This issue is fixed in VS2015 update1. You need to download and install it: https://www.visualstudio.com/en-us/news/vs2015-update1-vs.aspx
Cleaning cache folder on your client machine: C:\Users\username\AppData\Local\Microsoft\Team Foundation\6.0\Cache. And clean the cache on your TFS AT machine: C:\TfsData\ApplicationTier\_fileCache
Then, on your client machine, resetting settings and add-in settings with devenv /ResetSettings and devenv /ResetSkipPkgs, try rebuilding all templates with devenv /setup.

TFS Build notification options not populating build definitions

downMy gated checkin reconcile message has stopped working. To troubleshoot I opened up Build Notifications options and see that the "Build notifications to monitor" list is blank.I restarted Visual studio, connected to the project server again in the IDE, rebooted the machine but still Build notification options are blank.
I have also deleted the Team Foundation local cache from %localappdata%/Microsoft/Team Foundation/5.0/Cache but to no result.
From what i understand the Build notification desktop tray app gets the connection to the server from the Connect option in Visual Studio IDE. All the settings look right but the problem persists. Any suggestions?
P.S : I have recently downgraded from Visual Studio 2013 Ultimate to Visual studio 2013 Pro.
Each version of Visual Studio (2010, 2012, 2013, 2015 etc) installs its own newer version of this tool. Each under a different path that contains the Visual Studio version.
Make sure you're launching the correct one, or register your TFS version inside the latest version of Visual Studio installed and use that (since it will be able to connect to any and all versions of TFS).

Resources