Page 1 of 1
What are the minimal access rights for report template file?
Posted: Tue Nov 19, 2013 9:07 am
by tpontow
Hello,
what are the minimal access rights i need for an *.mrt report template file and the containing folder for compiling, rendering and showing a report? I need to know this for the use of reports on our ASP hosting server sytem.
Thanks and regards
Thorsten Pontow
Re: What are the minimal access rights for report template f
Posted: Thu Nov 21, 2013 6:30 am
by HighAley
Hello, Thorsten .
tpontow wrote:what are the minimal access rights i need for an *.mrt report template file and the containing folder for compiling, rendering and showing a report? I need to know this for the use of reports on our ASP hosting server sytem.
You need rights only to read mrt-files.
The full trust environment is needed to compile report.
Thank you.
Re: What are the minimal access rights for report template f
Posted: Thu Nov 21, 2013 2:01 pm
by tpontow
Hello Aleksey,
i made a simple test. I changed the attribute
write protected of a full functional report to true.
After that i get
Code: Select all
System.UnauthorizedAccessException
What do i have to do to open, compile and show a report with write protection? You said that i only need read right.
Kind regards
Thorsten Pontow
Re: What are the minimal access rights for report template f
Posted: Thu Nov 21, 2013 2:52 pm
by tpontow
Ok, we solved the problem. In our internal framework we loaded the report file with
Code: Select all
Stream stream = File.Open(fileName, FileMode.Open);
This called in .NET framework the following
Code: Select all
Stream stream = File.Open(fileName, FileMode.Open, FileAccess.ReadWrite);
which is not good for write protected files

.
The solution is simply the use of
Code: Select all
Stream stream = File.Open(fileName, FileMode.Open, FileAccess.Read);
Thanks for your help and support
Thorsten Pontow
Re: What are the minimal access rights for report template f
Posted: Fri Nov 22, 2013 5:53 am
by HighAley
Hello.
Thank you for posting your solution.
Let us know if your have any additional questions.
Thank you.