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
Related
Everyone. Thanks for reading.
In Microsoft Visual Studio Professional 2019 version 16.10.4, after starting VS 19, loading a solution with 17 packages, I go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution... and the "Nuget - Solution" tab appears in VS 19. "Browse" is select by default, in that tab, and it begins to connect to nuget.org as the package source. Eventually I get this error:
[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json.
The HTTP request to 'GET https://api.nuget.org/v3/index.json' has timed out after 100000ms.
Is anyone else getting this error? If so, how did you fix it? I've tried shutting down VS 19, and removing NuGet.Config from:
C:\Users\<username>\AppData\Roaming\NuGet
After restarting VS 19, and using NuGet package manager, it regenerates the NuGet.Config file. Also, while I was getting this issue, Microsoft released VS 19 version 16.10.4. Originally this was happening in 16.10.3. The issue continued consistently from 16.10.3 and after the update to 16.10.4.
Also, I can open a browser tab and hit https://api.nuget.org/v3/index.json directly. It must be something specific to VS 19, and not my internet connection.
Any ideas on a fix? Thanks again, All.
Thanks #Dylan Zhu-MSFT Yes, turning off the VPN, going through the process mentioned in the question, and it does connection to nuget successfully. I see updates for installed packages, and it's returning results for searches. No errors. Thanks.
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 :)
I've installed Visual Studio 2019 and uninstalled Visual Studio 2017.
Now if I start an ASP.NET (Core) site with https, it always say on Chrome:
This site can’t provide a secure connection
or on Edge
Can’t connect securely to this page
Screenshots:
Chrome:
Edge:
The URLs are correct. This also the same http://localhost:56784/ (it redirects to https)
Tried
What I've tried:
Updated Visual Studio 2019
Create a new ASP.NET Core 2 website
Tested with a ASP.NET site (non core)
Remove IIS certificates with MMC
Checking/changing the IIS settings in Visual Studio 2019 (project properties with context menu and project properties with F4)
Searching on Stackoverflow & Google ;)
Repair Visual Studio 2019
Issue
I think the issue is introduced by:
Installing Visual Studio 2019 and/or,
Uninstalling Visual Studio 2017 and/or,
Updating Windows 10 (current Version: 10.0.18362 Build 18362)
The underlining issue looks like a wrong/old/not supported TLS version?
Question
What can I do to diagnose/fix the problem?
Just as it did not work for #Nosnetrom - repairing IIS 10.0 Express did not work for me either. As #Julian mentioned my problem was caused by uninstalling VS 2017 as well.
This is what did not work for me:
uninstalling / re-installing VS 2019
installing VS 2017
uninstalling / re-installing / repairing IIS 10.0 Express
This is what worked for me:
after reading this advice - I realized that I was using port 51542 instead of a port in the range of 44300 through 44399
then I updated the applicationhost.config file according to this advice. The location of said file on my Windows 10 machine is: C:\Program Files (x86)\IIS Express\config\templates\PersonalWebServer\applicationhost.config. I had to open that file in Notepad ran as an administrator otherwise I could not save these changes:
then in Visual Studio I created a new virtual directory
that seemed to have done the trick for me - when I ran the application it worked
Repair of IIS Express fixed my problem:
For those who all the above methods didn't worked:
open a command prompt and then run:
dotnet dev-certs https --clean
and then:
dotnet dev-certs https --trust
None of the above solutions worked for me, Following steps worked for me.
Go to chrome or edge browser and type chrome://net-internals/#hsts
search for localhost in query domain, you will find lists of domain including localhost. Now delete the domain
Delete the domain by typing localhost
Just follow below steps:
Close Visual Studio
Delete .vs folder
Restart Visual Studio
Build and Run the Application
As per my understanding, .vs folder keeps the old settings inside the applicationhost.config file. So better to delete all cached settings and start with fresh.
None of this worked for me. What did work (and it's not as drastic as the other answers)...
Go into web project and set Start URL and Project URL to this: https://localhost:44365/
Save (but don't run the Project).
Edit .vs/[ProjectName]/config/applicationhost.config and change the bindings for the web project to this:
<binding protocol="https" bindingInformation="*:44365:localhost" />
<binding protocol="http" bindingInformation="*:53269:localhost" />
Reopen Visual Studio and when I started the website it worked.
I solved this problem as follows;
run the web project in debug mode on Visual studio 2019.
if it's on chrome you should do this ;
In my case use SSL check box was gone in debug section of project properties. everything was fixed by checking again
Right click on the project, select Properties, 'Debug', check the checkbox "Enable SSL", that's it, worked with me by doing this
If you 'are using services.AddHttpsRedirection like
services.AddHttpsRedirection(options =>
{
options.RedirectStatusCode = (int)HttpStatusCode.TemporaryRedirect;
options.HttpsPort = Configuration.GetValue<int?>("https_port", null);
});
Make sure HttpsPort is null or a valid port in appsettings.json or appsettings.Development.json file.
Clear your browser history and cookie
I was trying to send my Visual Studio Project via Gmail.but i am getting error "Blocked for security reasons!".Is there any thing i can do.
Thanks in advance
I just installed VS 2015 Professional and Tried to install Visual Studio Tools for Apache Cordova, it completed successfully.
However, when I try to get to create a new Project for the same, it just gets stuck there.
Then if I open a new instance of VS 2015 and go to Tools --> Options --> Apache Cordova, I get following error message:
---------------------------
Microsoft Visual Studio
---------------------------
The 'ApacheCordovaToolsPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\Anant\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
Restarting Visual Studio could help resolve this issue.
Continue to show this error message?
---------------------------
Yes No
---------------------------
I tried repair and uninstalling and reinstalling as well. But no luck.
Any thoughts/suggestions?
Sorry to hear about you're trouble. I suspect you are hitting a known issue which we have fixed and documented here:
https://support.microsoft.com/en-us/kb/3025135
Can you try the following workaround steps to see if it fixes the issue?
If the Tools for Universal Windows Apps Development are still installed:
Go to Programs and Features, select Visual Studio 2015, click Change.
In Visual Studio setup, click Modify.
Deselect the feature Tools for Universal Windows App Development.
Select Tools for Universal Windows App Development again, and click Update.
If you have already uninstalled the Tools for Universal Windows Apps Development:
Reinstall Tools for Universal Windows App Development.
Or, take the following steps to reinstall the JavaScript project system and language service:
Download the installer for your edition of Visual Studio, such as, vs_community.exe.
Open a command window, and run the following command:
vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive
Hope that helps. If not, I would very much like to see the xml log. Please email vscordovatools#microsoft.com so we can get in touch.