I have a web application hosted on a web farm. In the application there is a functionality where by user can write the files on a folder located on the virtual directory in the IIS like this:
var compressedFile = FileCompression.GetCompressedAndEncrypted(xml);
File.WriteAllBytes((filePath), compressedFile);
The issue here is that only the server that hooked to the client gets the updated files, but the requirement is to do this on both the servers of the farm simultaneously . There are two servers in the farm.
I want to achieve this programmatically. Please suggest...
You can do one of the following -
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.