Streamreader prompts "Access Denied" when reading desktop files"

Source: Internet
Author: User

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 ~~~~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.