Crystal Reports .NET Error - "Access to report file denied. Another program may be using it."


I encounter this problem several times, the way to get around this is to give "Everyone or Network Service " permission to "C:\windows\temp" folder. I gave everyone on my development box just for convenient.

I hope it will help you solve the same problem as I had. 

 

Here are some references:

 

http://forums.asp.net/t/985047.aspx

 

"It is enough to give read, write permission to NETWORK SERVICE user. crystal report create a temp file with guid for name in windows temp folder, so it needs write permission to the disk to make create that temp file." 

 

 

http://aspadvice.com/blogs/rjdudley/archive/2005/03/15/2567.aspx 

posted @ 2010-02-02 07:41 Vincent Yang 阅读(342) 评论(4) 编辑 收藏

 回复 引用 查看   
#1楼 2010-02-03 13:42 ☆用心生活☆      
maybe the temp folder does not allow you to access .HOHO,my english is very poor,I do not know how to make the enlish words into a sentence.oh,my god.
 回复 引用 查看   
#2楼[楼主] 2010-02-03 14:35 Vincent Yang      
引用☆用心生活☆:maybe the temp folder does not allow you to access .HOHO,my english is very poor,I do not know how to make the enlish words into a sentence.oh,my god.

Check your permission on temp folder under windows folder. I don't think windows will give "network service" or "everyone" write permission by default.

 回复 引用 查看   
#3楼 2010-02-03 15:27 ☆用心生活☆      
the same problem I had been encounted.YES,you said that: make "network service" or "everyone" Account can access the temp folder.
but can raise them into the user group 'IIS_WPG'.

 回复 引用 查看   
#4楼[楼主] 2010-02-03 15:35 Vincent Yang      
@☆用心生活☆
it's better to give write permission to Network service.coz iis 7 & iis 7.5 application pool by default will use"network service" account :)