What are the minimal access rights for report template file?

Stimulsoft Ultimate discussion
Post Reply
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

What are the minimal access rights for report template file?

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: What are the minimal access rights for report template f

Post 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.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: What are the minimal access rights for report template f

Post 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
Attachments
ReportWithNoWriteAccess.png
ReportWithNoWriteAccess.png (41.69 KiB) Viewed 2254 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: What are the minimal access rights for report template f

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: What are the minimal access rights for report template f

Post by HighAley »

Hello.

Thank you for posting your solution.
Let us know if your have any additional questions.

Thank you.
Post Reply