FileIOPermission

Stimulsoft Reports.NET discussion
Post Reply
abs
Posts: 6
Joined: Wed Aug 01, 2007 12:29 am
Location: india

FileIOPermission

Post by abs »

where should i set StiOptions.Engine.FullTrust=false

thanks
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

FileIOPermission

Post by Guest »

You can set

Code: Select all

Stimulsoft.Report.StiOptions.Engine.FullTrust = false;
for example, on page load, before call all methods.

P.S. In the partial trust mode you can't load file, besause IO operations in this mode is limited.

Thank you.
abs
Posts: 6
Joined: Wed Aug 01, 2007 12:29 am
Location: india

FileIOPermission

Post by abs »

i got syntax error, when i set Stimulsoft.Report.StiOptions.Engine.FullTrust = false;

'Stimulsoft.Report.StiOptions.Engine' does not contain a definition for 'FullTrust'
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

FileIOPermission

Post by Guest »

Possibly, you use the older version of StimulReport, which hasn't FullTrust option. If so, try to download one of the last build. Then you must refresh GAC:
1. remove older dll (Start - Control Panel - Administrative Tools - Microsoft .NET Framework 2.0 Configuration - Manage the Assembly Cache -View List of Assemblies in the Assembly Cache)
2. add new (Start - Control Panel - Administrative Tools - Microsoft .NET Framework 2.0 Configuration - Manage the Assembly Cache - Add an Assembly to the Assembly Cache)

If your application has a reference to Stimulsoft.Report.dll and in GAC you also have Stimulsoft.Report.dll then all must work.

Thank you.
abs
Posts: 6
Joined: Wed Aug 01, 2007 12:29 am
Location: india

FileIOPermission

Post by abs »

i use StimulReport.Net 2007.1 Trial version

still i get the error message

'Stimulsoft.Report.StiOptions.Engine' does not contain a definition for 'FullTrust'

Which Build Should I Use to resolve this problem?

Thank You
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

FileIOPermission

Post by Brendan »

Hi,
You can find the latest trial pre-releases here:
http://www.stimulsoft.com/DownloadsSR.aspx

Then follow Pavel's instructions on registering new dll's to the GAC
Post Reply