Page 1 of 1

Webviewer globalization Problem

Posted: Thu Jul 24, 2008 4:21 am
by ape
Hello

i've following problem:

i set the globalization file path:

Code: Select all

StiWebViewer.GlobalizationFile = @"C:\Program Files\Stimulsoft Reports.Net 2008.1 Trial\.Net 2.0\Bin\Localization\de.xml";
but i got following error:

Code: Select all

Following Exception has been thrown: 

System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at Stimulsoft.Report.Web.StiWebViewer.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Stimulsoft.Report.Web.StiWebViewer.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
i've also tried to save it on c:

Code: Select all

StiWebViewer.GlobalizationFile = @"C:\de.xml";
or without filename

Code: Select all

StiWebViewer.GlobalizationFile = @"C:\";
or without @ :)

Code: Select all

StiWebViewer.GlobalizationFile = "C:\\de.xml";
but i always get the same exception

hope you can help me again =)

thanks ape

Webviewer globalization Problem

Posted: Thu Jul 24, 2008 11:16 am
by Vital
Hello,

Please try use relative path. For example:

de.xml

..\de.xml

..\localization\de.xml

Thank you.

Webviewer globalization Problem

Posted: Fri Jul 25, 2008 2:19 am
by ape
Thanks for your great support =)