StiConfig.applicationDirectory in a web application
Posted: Wed Mar 17, 2010 11:01 am
Hello,
when we use InitWeb in StimulReport, it sets the StiConfig.applicationDirectory to HttpContext.Current.Server.MapPath(String.&Empty).
The problem is that if the current page that is calling InitWeb is not on a physical folder but on a virtual one, applicationDirectory is set to an non-existent folder and, during the compiling of the report, StimulReport makes this directory the default one and crashes.
It would be better to use the directory where the StimulReport dll is located, or use HttpRuntime.AppDomainAppPath.
Patrick
when we use InitWeb in StimulReport, it sets the StiConfig.applicationDirectory to HttpContext.Current.Server.MapPath(String.&Empty).
The problem is that if the current page that is calling InitWeb is not on a physical folder but on a virtual one, applicationDirectory is set to an non-existent folder and, during the compiling of the report, StimulReport makes this directory the default one and crashes.
It would be better to use the directory where the StimulReport dll is located, or use HttpRuntime.AppDomainAppPath.
Patrick