Problem: streamreader prompts "Access Denied" when reading desktop files"
Later, I found the relevant information on the Internet, saying that it would be okay to grant the corresponding permissions to the folder on the desktop, such as the users read and write permissions, and even more advanced solutions, open C:/Windows/Microsoft. net/framework/v1.1.4322/config machine. find the following node in the config file: <identity impersonate = "false" username = "" Password = ""/> change: <identity impersonate = "true" username = "Administrator" Password = ""/> ". It looks very advanced. Later, I solved it as prompted, but I still need to think about it for the user. Isn't the permission of modifying the "desktop" folder happy for every user? How can it be so troublesome to modify machine. config and write the machine username and password? What if the user changes the password?
I took this string of questions to consult K. I almost didn't get sprayed: How can the server possibly read the desktop of the client ??
Day! I made such a low-level mistake!
Let's look back at the problem. How can this problem happen? Streamreader operationCompositionIt must be uploaded to the server. What is the significance of reading local files?
Dizzy ~~~~