Visual Studio 2017 and Chrome: ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY when starting a fresh new project - visual-studio

I just downloaded VS 2017 and installed it on Windows 10 Professional. Then, full of hope, I started a new web project with the Angular template. I hit <Run>, accepted to install the generated certificate that VS generates for everything to work, and suddenly Chrome said:
ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY
And now I'm sad and disappointed.
Everyone on internet says that it was fixed with the latest update of VS 2017, but it's not true because I have it totally updated (I just installed it an hour ago, downloaded from Microsoft web page).
I'm running (64bit all of them):
Visual Studio Professional 2017, 15.9.7
Windows 10 Pro, 1709, compilation 16299.402
Chrome 72.0.3626.119

Finally I solved the problem adding these two entries into the Windows Registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters]
“EnableHttp2Tls”=dword:00000000
“EnableHttp2Cleartext”=dword:00000000
I have found the solution here. It says:
There are a few reasons for this and the main one is that IIS in Windows Server 2016 turns on HTTP/2 by default and only falls back to the older HTTP/1.1 if the browser doesn’t support HTTP/2. While HTTP/2 is generally a good thing and most recent browser support it, it also has stricter requirements than HTTP/1.1 and the issue with these browser errors is that the Windows Server 2016 is trying to establish an HTTP/2 session with the browser but the server is configured with some weaker SSL Ciphers which aren’t supported by HTTP/2.
Hope it helps others.

Related

TF400324: Team Foundation services are not available. Could not create SSL/TLS secure channel

TF400324:Team Foundation services are not available from server xxxx
Technical information (for administrator):
The request was aborted: Could not create SSL/TLS secure channel
Some of our developers are getting the error above whilst working with TFS but only after having Visual Studio open for about 5-10 minutes. We are currently working around this issue by closing and opening Visual Studio as it seems to be connecting fine just after openning.
Note that this is not all of our developers and all developers are on the latest version of visual studio version 15.9.1 and the TFS server is 2015.
Our tfs website where we manage our sprint boards is fine and the certificate is valid until 2020. We recently updated our certificate to a wildcard e.g. *.mywebsite.com.
What we have tried:
IIS Crypto 2.0 from Nartac Software to check Protocols/Ciphers on clients and servers
Clearing the TFS cache folders on the client machines
A complete fresh install of visual studio, sign in and connection to TFS
Regedit HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319: SchUseStrongCrypto for both 32bit and 64 bit. Found here https://johnlouros.com/blog/enabling-strong-cryptography-for-all-dot-net-applications
Using a different microsoft login (also verified that mine works on other machines)
None of the above have solved the issue. What is puzzling me the most is that it works for a period of time before displaying the error, once the error has been displayed it seems that it never tries to reconnect to the TFS server so requires a fresh instance of visual studio before it attempts and successfully reconnects.
I found the answer here: https://developercommunity.visualstudio.com/content/problem/356394/tls-10-the-request-was-aborted-could-not-create-ss.html
The issue happens because VS 15.9 attempts to use system defaults for TLS handshake, but it is being to set to TLS1.2 somewhere within VS. While Microsoft works on a fix, you can work around this by setting this registry key
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000000
This should force .net to use system defaults (rather than TLS 1.2) and that should help negotiate gracefully down to TLS 1.0 if the TFS server is set to support only TLS 1.0.
That worked for me for VS 15.9.3 just fine (needed to restart VS though).

Visual Studio Browser Link not working in Firefox

I'm using Visual Studio 2015 and Browser Link doesn't work with Firefox.
IE and Chrome work perfectly with Browser Link.
Just got a new machine, but that didn't help either.
I tried the prerequisites mentioned in the browserlink dashboard (for static files, enable debugging) and I use IIS express, so .NET 4.0 is there.
Are there any more settings needed in Firefox?
In the network view, I just don't receive a response from the server, 0 bytes transferred.
Network trace:
Found it, the main website was running on 44300, browserlink seems to run on 44399 (although that port isn't visible in IIS express)
Browse to https://localhost:44399 gave me the Firefox "This Connection is Untrusted" screen, where I needed to trust("confirm security exception") the self signed IIS certificate (just like what I had done on the https://localhost:44300 site)
So it seems Firefox remembers trusted certificates per port number, not per DNS/IP/Name like IE and Chrome seem to do.
Now the browserlink is working and downloading the files.
I don't have IIS running locally, but ran into a similar problem running the app locally with Visual Studio 2019.
The suggestion by Erik fixed the problem for me as well. Browsing to https://localhost:44399/ and accepting the certificate worked in Firefox Developer.
Some more details from Microsoft regarding self-signed certificates:
https://learn.microsoft.com/en-us/iis/extensions/using-iis-express/handling-url-binding-failures-in-iis-express

Chrome/Windows: Connection refused when I use my IP address

I have an ASP.NET server running under VS2010 on my PC (Win7) on port 12345.
When I load localhost:12345 in Chrome, my default page loads perfectly.
But when I load 192.168.128.104:12345 (by my internal IP, not by localhost) I get "connection refused".
Exact same behavior when I try to access the server from another device on my intranet (in my case, a Raspberry Pi)
I realize that when I hit localhost that I'm just looping back in my adapter, thus the request never leaves my machine. So it would seem that the cause is due to the request leaving & re-entering my machine.
I've create custom Inbound & Outbound rules in my Windows Firewall to allow port 12345, but to no avail.
Any ideas would be appreciated.
I found the answer here:
Can I access ASP.NET Development server in an intranet?
which led me to this:
http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/UseFiddlerAsReverseProxy
As is so often the case, finding the answer is hugely dependent upon using the correct search terms. Here the critical keywords were "asp.net debug intranet"
The 'right way' here is to use IIS Express and you don't need fiddler to act as a reverse proxy. Its a hack that was used to work around using Cassini - a low budge web server that is outdated (and doesn't compare to IIS Express) and used with VS2010 prior to SP1.
In VS2010 SP1, IIS Express support was added. You can read about that here:
http://blogs.msdn.com/b/webdev/archive/2011/03/14/enabling-iis-express-support-in-vs-2010-sp1.aspx
IIS Express can handle this just fine - and Visual Studio 2010 integrates with it. Its not one or the other - you develop with Visual Studio and when you launch your app it launches it with 2010.
If you want something really easy, install Visual Studio 2015 Community Edition, use ASP.NET 5 (now called ASP.NET Core 1) and simply run it to self host via the play button looking drop down you are used to seeing in VS 2010- no web server required.
Again - being that its 2016 - what you cited is a very old way. If its a quick hack, I can understand that - but if you are looking for the best practice way going forward, use IIS Express (and ideally a newer version of Visual Studio - we have them for free in the 2013/2015 Community Editions)
Hope that helps!

"The Web server does not appear to have the FrontPage server extensions installed and iis6

I wanted to publish my website from visual studio but i got "The Web server does not appear to have the FrontPage server extensions installed" error;first I tried to install frontpage but because i didn't have microsoft share point in my administrative tools list and as here said:here,I tried to install webdav 7.5 version,(I believed my iis version was 7)but it gives me error that iis version 7 needs webdav version 7.5!!!
I have googled it and tried so many links more or less(because I couldn't find some parts of them in my computer),I tried enabling webdav and ...
such as:thisand this
but none helped.so I thought maybe I am going wrong,so due to this:which is my own question,i think maybe i am using windows server 2003 and iis6,so i googled to install frontpage for iis6,from here,but I don't have such a thing "FrontPage 2002 Server Extensions" in turn windows features on or off,so what should I do?please help me to get out of this hell,should I upgrade iis6 to iis7?please help,i will be so thankful.
by the way my os is windows 7 64 bit,and I use visual studio 2010.
FrontPage server extensions (FSE) is a server side package that FrontPage and some other Microsoft applications use to upload files to web sites. FSE must be installed on the server in order for these applications to upload files. FSE has nothing to do with Microsoft desktop products directly. It is often installed on Apache systems, for example. cPanel has an option to install it, if you are using that to manage your server.
IIS should come with FSE already installed, AFAIK. That would certainly make sense, with it being a Microsoft product.

Is an ISO or EXE download available for Visual Web Developer 11 Beta?

Am I able to download the Visual Web Developer 11 Beta ISO or EXE?
I have a very bad Internet connection that drops out all the time, so I would like to download it at a friend’s place and not use the Web Platform Installer if it can be helped.
If you are an MSDN subscriber, you should be able to download the ISO from the MSDN Subscriber Downloads page. But I suppose that you are not, considering that you're asking this question!
Unfortunately, I cannot find an official ISO of Visual Web Developer 11 Beta that is publically available on Microsoft's website.
However, you can download an ISO of any of the 4 editions of Visual Studio 11 here, which would include all of the functionality of Visual Web Developer. For example, the Professional version is available here. The download is slightly larger, but if the Internet connection is stable, that should not be an issue.
Thanks guys but I found it here http://www.microsoft.com/download/en/details.aspx?id=28975 VS11_BETA_ULT_ENU.iso is the one.
Now I have it all up and running i'm not sure if I like it!!!
you could use internet download manager, even if your connection drops out the downloaded parts would not be corrupted.

Resources