开发者

Could any one explain me why this error was occuring while doing in IO operations?

开发者 https://www.devze.com 2023-01-26 22:09 出处:网络
I have a small windows app which was given in this article. In this I want to to compress a sample.txt file.

I have a small windows app which was given in this article.

In this I want to to compress a sample.txt file. But am gett开发者_StackOverflow中文版ing this error:

"Access to the path 'C:\Documents and Settings\hemanth.vemu\Desktop\Compress' is denied."

Please help me regarding this.


It means exactly what it says.

The account that the application is running under does not have the right permissions on the folder in question.

Make sure you have read/write/create permissions on the folder you are working with.


You will need to give your application authentication to the hemanth.vemu user. You can use LogonUser to do this. It can validate both local and remote users. For local users simply pass the machine name in place of the domain.

0

精彩评论

暂无评论...
验证码 换一张
取 消