My website is developed with Microsoft .NET MVC. I use the Clouninary NuGet library.
If I use Visual Studio Development Server my code works and I can upload new image.
But if I deploy to a local IIS server it does not work. It seems local IIS cannot access Cloudinary. My page is able to display the image from from Cloudinary. I have no firewall on my computer.
var settings = ConfigurationManager.AppSettings;
var configuration = new AccountConfiguration(settings["Cloudinary.CloudName"],
var uploader = new Uploader(configuration);
string publicId = Path.GetFileNameWithoutExtension(filename);
var destroyResult = uploader.Destroy(publicId); <-- This fails with the message:
[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
Post is closed for comments.