Struggling for this problem for a day ~ Finally solved... Record
After the release, try to modify an XML file. If an exception is caught, "the XML file is denied to be modified" is displayed. No permission is assigned ???
1. Check whether "write" is selected for the virtual directory attribute in IIS ".
2,ProgramIs running completely normally, and there is no problem with adding, deleting, modifying, and querying XML files.
3. After the release, the page is displayed normally, that is, the content in XML can be read.
For Internet searches, the "Security" attribute of the XML file should be set separately (right-click the XML file-> "security" tag ).
But the problem arises. Right-click the XML file and there is no "security" tab. What's going on ???
......
It turns out that simple file sharing is used by default.
"My Computer"-> "Folder Options ..." For example, remove the small check box before "use simple file sharing (recommended.
Find the XML file in the released folder and right-click it to view the "Security" tab ~ For example:
Add a user "Everyone (custom)", and select allow "write" for permissions below ".
Verify again, and the modification is successful ~~