• Register
0 votes
166 views

Problem :

I have facing an issue with my C# PayTrace Gateway. My code was working fine until they turned off SSL3 due to the Poodle Exploit. When tried running my code I am getting the following message:

The remote server has forcefully closed the connection.

After doing a lot of research on the above mentioned error I determined that as our IIS Server 7.5 was configured by us to use SSL3 so C# defaulted to SSL3, and because of that PayTrace had forcibly closed the connection. After that we removed SSL3 from our server.

But  after that we faced following error:

The client and server cannot communicate, because they do not possess a common algorithm.

Any clue on error messages which I am facing?

6 5 3
7,540 points

1 Answer

0 votes

Solution :

There are many other discussions about this issue and now they all point to enabling TLS 1.2. And they are confirming that anything less is clearly unsafe.

You can try this in .NET 3.5 with a patch.
You also try this in .NET 4.0 and 4.5 with a single line of code as follows:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; // .For NET 4.5

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; // For .NET 4.0

And please note  .NET 4.6, automatically uses TLS 1.2.

9 7 4
38,600 points

Related questions

1 vote
1 answer 99 views
99 views
Problem : I have recently developed one page which I guess takes more time to load in the asp.net website. My page currently works with all the Android OS, all of the MAC OS and all iOS but it fails with iOS with version 10.0.0.2 with only safari browser. If I ... the DNS server Tried the Airplane mode on-off Also did my iPhone restart But still unable to fix it. Can someone help me in fixing it?
asked Apr 1 morrisBson 3.2k points
0 votes
1 answer 1.3K views
1.3K views
Problem : My DbContext class defined the principal entity as below. HasOne(b => b.Customer).WithOne(c => c.BankAccount).HasForeignKey<BankAccount>(f => f.Id); But while running the update-database I am getting the following error: System.InvalidOperationException: To ... deleted the column, constraints and table as well and then the complete database also. But still I am getting the same error.
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 10 views
10 views
I have a hash of words and respective frequencies, that I want to order by frequency. Sorted Dictionary orders by key, not value. Some resort to a custom class, but is there a cleaner way?
asked Aug 31 Sofi55 1.1k points
0 votes
1 answer 13 views
13 views
In previous versions of .Net, it was possible to override bool AuthorizeCore(HttpContextBase httpContext). But this no longer exists in AuthorizeAttribute. What is the current approach to making a custom AuthorizeAttribute?
asked Aug 29 Aliza313 720 points
0 votes
1 answer 872 views
872 views
Problem : I am facing the below error: Failed to load resource: the server responded with a status of 401 (Unauthorized) http://localhost/App/AngularJS/angular.min.js My project works fine on the localhost. But when I try to run it on the IIS (7.5) I often face ... read/write/modify access for the "IUSR" & "IIS_ISURS" users of my whole project. But still I am facing the same exception on my IIS.
asked Dec 24, 2019 alecxe 7.5k points