can't debug https webpage in Visual Studio 2017 - debugging

I’m trying to test a website in Visual Studio 2017. However, I get the following error message when I start debugging the website. I believe this has to do with Visual Studio’s SSL certificate. The error message says:
adding a certificate to the trusted root certificates store failed with the following error: access denied
And it causes issues downstream when I try to debug a https webpage. The webpage says:
this page can’t be displayed
Is there a way to fix this certificate issue with Visual Studio 2017 so that I can debug the https webpage in my website?

Related

Unable to download Android SDK from Visual Studio

I'm trying to download Android SDK on Visual Studio 2019, but I'm getting an error. When I take a look at sdkmanager.log file, I see System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. error.
I've tried disabling virus guard, disabling firewall, and repairing visual studio. Nothing worked.
I've attached both ide.log file and sdkmanager.log files.
Finally found a solution for this
Have to disable Tls1.3
Thanks for these 2 guys
https://www.youtube.com/watch?v=5gGAAnn3acU
https://github.com/NuGet/NuGetGallery/issues/7705

Visual Studio Encounters 403 Error Connecting to DevOps Project

One of my developers is receiving the following message from Visual Studio 2017 Enterprise when trying to connect to one of our DevOps projects and we've tried everything we can think of and everything we've found from searching Stack Overflow and the internet in general just hasn't worked.
Here's the error from Visual Studio:
We could not add the account
The browser based authentication dialog failed to complete. Reason:
The server understood the request, but is refusing to fulfill it.
What we've tried
Deleting the folders Team Foundation, VisualStudio, VisualStudio Services, VSCommon, and vshub located in %userprofile%\AppData\Local\Microsoft
Deleting everything from Windows Credential Manager.
Authenticating via browser (success).
Repository is hosted on dev.azure.com.
From what I understand, this is an HTTP 403 error which means the user successfully authenticated and that they just don't have permissions to view the requested resource. Permissions in DevOps are identical to other users that don't have any issues. We have 1 group for the developers and if you're in that group, you have all necessary permissions so I'm confident their permissions are identical to the other devs that aren't having any issues.
I think I understand what this error means for websites in general, however I seem to be at a loss for what either Visual Studio or Azure DevOps wants us to do specifically to alleviate this error.
The browser based authentication dialog failed to complete.
Once it was a known issue in old VS2015 and VS2017, but I can't reproduce it on my latest VS2017 15.9.23. Here're some tips you can follow to resolve that issue:
1.Update VS2017 to latest 15.9.23 version.
2.Navigate to VS installation path C:\Program Files (x86)\Microsoft Visual Studio\2017\VsEdition\Common7\IDE and run devenv.exe /resetsettings and devenv.exe /resetuserdata to reset the VS settings and userdata. From Joyce Lin.
3.Check your registry settings and empty the China endpoint if it exists. Check this one. Now try to log in the VS...
4.If the issue persists after #3, you can:
Open Visual Studio
Click Help > Send Feedback > Report a problem
An instance of Visual Studio Feedback will open
Attempt to sign in using your MS account
If sign in is successful, check if you are signed into Visual Studio
Hint from Nathan Timblin.
Hope all above helps :)

Cannot start Outlook web add-in

I have an issue trying to load and debug any kind of Outlook web add-in. I can reproduce with my own add-in (which is deployed to the Office store and used to work in debug mode perfectly!) as well as with the default add-in template in Visual Studio 2017. I create a default "OutlookWebAddin1" project, change nothing, hit F5 to deploy and run/debug, enter my credentials, and load the add-in in the Outlook client or browser (Chrome, IE and Edge) - all exhibit the error:
"Add-in Error: Something went wrong and we couldn't start this add-in.
Please try again later or contact your system administrator."
The F12 console in Chrome (to pick one of the three browsers I tested with), shows these errors:
GET https://localhost:44398/MessageRead.html?et=&_host_Info=
Outlook|Web|16.01|en-CA|11aa92ad-a510-ddb9-c441-529b1b374f16|
net::ERR_INSECURE_RESPONSE
GET https://localhost:44398/Images/icon64.png net::ERR_INSECURE_RESPONSE
Executing action: GetTaskStatusAction
GET https://outlook.office365.com/ows/outlookusersettings/api/v1/frepanel
/frepaneltaskstatus 401 (Unauthorized)
Here's a prettier look at the error:
https://www.screencast.com/t/elcbcUkdlkO
The cause is apparently a problem with the localhost certificate. The fix is to use the Certificates Snap-In in MS Management Console and copy the localhost certificate from "Personal-> Certificates" to "Trusted Root Certification Authorities -> Certificates". How this problem occurred on two very different PCs with different versions of Visual Studio is a mystery, but this does work.

Visual Studio Team Services with VS 2013-2015 each time I edit file gives me alert: hostname could not be parsed

I have a project on Visual Studio Team Services.
I use now Visual Studio 2015 Community, each time I modify a file I got an error on Source Control - Team Foundation console:
`Invalid URI: The hostname could not be parsed`
I see my connection from my Team Explorer connection list:
How can I prevent this error ??
I switch to Server location from Workspace, when I try now to switch back to Local I get an similar error.
If I go to https://jooweb.visualstudio.com I can see my code etc.
If I explore from Source Control Explorer I have no error ....
Where can I find log from error to get more information ?
Is there anything to do to clean TFS cache ... ?

Visual Studio 2010 DevServer gives me 403 error

I have a C# MVC project created in Visual Studio 2010 Professional (VS) on Windows 7 but I am not able to run it and debug it in VS.
VS gives me: Unable to connect to the ASP.NET Development Server
The development server starts tho on http://localhost:63785/ but that gives me Server Error in '/' Application. HTTP Error 403 - Forbidden. Version Information: ASP.NET Development Server 10.0.0.0
I am able to start the application directly using: "C:\Program Files\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer40.EXE" /port:8080 /path:"D:\visual studio 2010\Projects\MvcApplication1\MvcApplication1\ but I am not able to use VS debugging that way
My colleague tried to run the application using IIS but that gives him the 403 error as well.
I dont have much experience regarding IIS or ASP, I tried to google it and tried few ideas but none seems to be working for me.
I had this problem once in firefox when the following checkbox was activated:
(Website right click in solution explorer)->
Property Pages->
Start Options->
Server / NTLM Authentication
Maybe you accidentally restricted access to all pages of your project? Check authentication / authorization sections in web.config

Resources