Hello . Good time
I wrote a software with .NET MVC (C#) targeting .NET Framework 4.8.1.
In the project, I installed the package "TaxCollectData.Library" from nugget and wrote the following code in the program.
It gives an error when running:
The request was aborted: Could not create SSL/TLS secure channel.
I created a new project with the same specifications as above and added the package to it, but the written code works without errors.
I don't know why it gives this error on the old project that I added?
I wrote a software with .NET MVC (C#) targeting .NET Framework 4.8.1.
In the project, I installed the package "TaxCollectData.Library" from nugget and wrote the following code in the program.
11:
TaxApiService.Instance.Init(MEMORY_ID,
new SignatoryConfig(PRIVATE_KEY, null),
new NormalProperties(ClientType.SELF_TSP), "https://sandboxrc.tax.gov.ir/req/api/");
TaxApiService.Instance.TaxApis.GetServerInformation();
It gives an error when running:
The request was aborted: Could not create SSL/TLS secure channel.
I created a new project with the same specifications as above and added the package to it, but the written code works without errors.
I don't know why it gives this error on the old project that I added?