Blazor Server on IIS10 - only 4 concurrent connections - c#

One of my customers suddenly reported that a local website I've made in Server-side Blazor only can have 4 concurrent connections. When the 5th connection is established, one of the other 4 is getting disconnected.
I Have looked through my configuration and can't see any sign of this. Connections is not limited in IIS configuration.
OS: Windows Server 2016
I have tried to debug at my local copy of the virtual machine, but here everything is working as expected.
Anyone who got a clue what I can look for?

Related

What can cause a SignalR connection to drop?

I have a C# Windows Service running in approximately 500 locations. When the services start they initiate a connection with a remote SignalR hub running on a VM in AWS. The connection/tunnel is then used for sending information from the server to each location throughout the day.
This has been running fine for the past 18 months, but for the past week the remote services have been losing connection and have to be restarted to reinitiate the connection with the server. I'm using SignalR 2.4.1 which doesn't have the auto reconnection feature of the newer versions.
I've noticed that it seems to be happening about every 18 hours. Nothing has changed on the clients or on the server that anyone is aware of.
I'm looking for ideas on what could be causing this. Any input would be appreciated.

Website can't connect to SQL Server, but console app can

I have a SQL Server with two databases, a production database and a development database. The .net 2.0 website hitting the production database with manual SqlConnection code is working fine. The other database is being hit from a newer ASP.NET MVC app using Entity Framework 6.2 and is getting timeout issues. The timeout takes 30 seconds the first time, but the page comes back almost instantaneously on subsequent refreshes. Both websites are on the same box as the database, so are only using "localhost" to connect. They are using SQL Server user logins, not Windows authentication.
I copied the .edmx and .tt files into a .net console app and that app has no problem hitting the database with the exact same linq query and pulling the same data that is failing.
I then created a new web site and copied just that same code into an aspx page. It fails the first time with a timeout, and then works on subsequent attempts (and a week ago, the main dev site was doing the same thing).
I separated the dev database from the SQL Server 2008 R2 server and attached it to a newly installed instance of SQL Server Express on a different port, and get the same results.
The web server is windows server 2008 standard 32-bit. I copied both websites and the console application to a new box (I thought was 2016, but it turns out it is 2008 standard 64-bit) and get the same results.
The dev site was working up until a couple of months ago. The client was using local user accounts for everything, but had a domain and wanted to do testing with windows authentication for an old vb app that hits the same database, and I had started migrating testing accounts to the domain. When the client tried to later, for an unrelated reason, change his password, we discovered that he was already using a domain account, but that his laptop could not connect to the domain. We found several other computers that could not connect, even though the machines I had connected to the domain during my testing were working fine. An outside network "friend" was brought in to figure out what was going on. At that point, I lost all track of what was actually done. I know that different network and domain configurations were tried and didn't fix the domain issues, but I don't know what. However, the production site was never rendered inoperative.
I have no idea what is going on. Does anyone else?
Oh, and in case it was a provider issue, I've also tried manual connection using OleDbconnection from the web app, and it also fails with the Timeout issue.
Update:
I spun up a new DataCenter 2016 box, installed IIS and .net on it and copied the website to that box. It has no problems hitting the database and pulling the data from the other server.
I know patches and such were updated on the original box while the domain and network were being manipulated, but I don't know how far behind they were. I suspect that some patch changed some default or inherited .net configuration options or something. I did do a "repair" on the .net installation, and that didn't make a difference. However, with the production site working fine, I'm not currently willing to uninstall .net or anything else. I'm afraid I would risk pushing this same error into the production site and the client would be screwed.
It seems that for some reason, the timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.
Try increasing the connect timeout property in your connection string to 60 or more. Default is 15 (in seconds).
Example: Data Source=(LocalDB)\v11.0;Integrated Security=True;Connect Timeout=30

Azure mysql virtual machine stops working after a while

I have a ASP.net Web API deployed on azure and I also have there a MySql database in separate virtual machine running on linux. The problem I have is that when I restart the database and redeploy the web API from visual studio the connection between web API and mySql is working fine but after like 30 minutes I get this error:
"Unable to connect to any of the specified MySQL hosts"
If I want to make it work again i have to restart the virtual machine with database and redeploy the web API from visual studio. I am using connection string like this to connect in my web config
<add name="DefaultConnection" connectionString="Server=publicIpAddress;Port=3306;Database=db_12345_db;Uid=user;Pwd=*********;" providerName="MySql.Data.MySqlClient" />
This connection was working on server we had before we switched to azure. I suspect I did not configure azure correctly.
Any idea how to fix this issue ? Thanks
Connections Dropped
When connecting to a Azure SQL Database, idle connections may be terminated by a network component (such as a firewall) after a period of inactivity. There are two types of idle connections, in this context:
Idle at the TCP layer, where connections can be dropped by any number
of network devices.
Idle by the SQL Azure Gateway, where TCP keepalive messsages might be occurring (making the connection not idle from a TCP perspective), but not had an active query in 30 minutes. In this scenario, the Gateway will determine that the TDS connection is idle at 30 minutes and terminate the connection.
https://github.com/sidorares/node-mysql2/issues/316
Hope this works for you.

Oracle Rightnow Unable to connect to remote server

I am using Oracle Right now CRM. while opening the cloud application users are getting the error messages quite often, not all the time. first we thought it was because of the bandwidth usage so we tried allocation 1:1, 10 MBPS leased line for it. but still the same error is throwing.
http://textuploader.com/kyt2
Are you behind a firewall? The RightNow app requires that quite a few hosts be opened up to outgoing traffic. The list of hosts can be found in the RightNow Environmental Configuration Guides (https://cx.rightnow.com/app/answers/detail/a_id/2364/kw/Environmental%20configuration%20guide).
Find your CX version and check to make sure that outgoing traffic is open to all required hosts including:
*.custhelp.com
*.rightnowtech.com
*.rightnow.com
*.rnttraining.com
*.livelook.com and *.livelook.net (for co-browse functionality)
*.birst.com (for Enterprise Analytics functionality)
*.hivelive.com (for Oracle RightNow Social functionality)
*.rnengage.com
The guides contain other notes around network requirements that my be helpful.

Accesing an IIS hosted website in Ubuntu under VMWare

So as the question goes, I have hosted a ASP.NET and C# website in IIS in my Windows 7 Ultimate OS. Not I need to be able to access the same site from ubuntu which is actually a virtualized OS running under VMWare.
I am able to access the website in my Windows 7 pc without any problems. But inside the Ununtu there seems no way to do the same.
I searched many forums for the same, no luck! Disabled the Firewall(Actually) to make sure no security issues arise but still not able to do the required thing.
This is the error :
Server not found
Firefox can't find the server at www.google.com.
Check the address for typing errors such as
ww.example.com instead of
www.example.com
If you are unable to load any pages, check your computer's network
connection.
If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
Any ideas?
the vm can access the host machine? if you use NAT connection mode seems cannot communicate with the host. Try Bridge instead?

Categories