Prospect summary
Previously, we needed to make a winform automatic update program in a project. The program needs to download the files that need to be updated from the server. Today I will tell you how to publish such a website to provide the program to download files.
Implementation process
Step 1: Create a website
Log in to the server, open IIS to create a website, here I set the directory in E:\WinFormUpdate
Step 2: Modify file security attributes
After the website is published, create a new folder "DownLoadFile" in the website directory, and we will put all the files that need to be updated and downloaded in this folder. Then modify the security attributes of the DownLoadFile folder, and add two external users "IIS_User" and "NETWORK SERVICE" to the folder.
Step 3: Verify whether it is successful
After the security group attribute is modified, go back to the IIS site, enable directory browsing for the website,
go back to our local and use the browser to browse the folder where we store the updated files. If the following picture appears, it means your files can be accessed through external programs. The files in your folder are gone.