Category - C#.Net
Results 1 - 5 of 158
08 Feb 2021 08 Feb 2021 0 Comments  1877 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class along with SSL3 Security Protocol in C# and VB.Net.

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

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service and hence there is mismatch in the cryptographic algorithm.
08 Feb 2021 08 Feb 2021 0 Comments  2756 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class in C# and VB.Net.
Error: Could not create SSL/TLS secure channel

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service which uses TLS 1.2 protocol for establishing secure channel for communication.
05 Feb 2021 05 Feb 2021 0 Comments  1763 Views
Here Mudassar Ahmed Khan has explained with an example, how to use TLS1.2 in projects using .Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 with C# and VB.Net.

But, the support for TLS 1.2 is available in .Net 4.5 onwards and hence this article will demonstrate how to use it in projects other Frameworks such as Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 without upgrading them.
02 Feb 2021 02 Feb 2021 0 Comments  4327 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Newtonsoft.Json.JsonConvert library for Serializing and Deserializing JSON using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be deserialized to JSON object using the Deserialize function of the JSON.Net library.

Finally, the JSON object will be again serialized to JSON string using the Serialize function of the JSON.Net library in ASP.Net using C# and VB.Net.
28 Nov 2020 28 Nov 2020 0 Comments  5310 Views
Here Mudassar Ahmed Khan has explained with an example, how to save (upload) Image files to Server using Web API in ASP.Net MVC Razor.

The Image files will be uploaded to Web API and then inside the Web API, the Image files will be saved in Folder (Directory) on the Server’s Disk in ASP.Net MVC Razor.
Results 1 - 5 of 158