Home Server
New Blog Posts: Merging Reports - Part 1 and Part 2

WebTier CacheDirectory in ini file

edited March 2008 in Server
I have the WebTier working in an ISAPI DLL using an ini file to load the
settings. This all works as expected apart from one little thing that I was
wondering if you can tell me is supposed to work this way or not.

In the ini file, I have this entry:
[LogSettings]
Location=($Application)\LogFiles

($Application) is in effect "C:\Current Test Version\reports" which is where
the dll is. Subfolders are "cache" and "LogFiles".

Any logging that takes place is correctly written to the LogFiles folder, so
I know the ($Application) variable is pointing to the correct place. I
changed this to somewhere else and the log file was created there instead.
All good.

I would like to do the same with the CacheDirectory property, but cannot
seem to get this to work with a variable. If my ini file reads:

[WebTier]
CacheDirectory=($Application)\cache

then IE returns HTTP 500 - Internal server error.

If I change the ini file to the full path:

[WebTier]
CacheDirectory=C:\Current Test Version\reports\cache

it all works.

Does the ($Application) variable not work with the CacheDirectory property
in the ini files?

--
Jason Sweby
Software Development Manager,
Carval Computing Limited, Plymouth, UK

Payroll - HR - T&A - Access Control

Comments

  • edited March 2008


    The WebTier.CacheDirectory property does contain support for using the
    ($Application) notation.

    I will add that to the feature request list.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2008
    "Nard Moseley (Digital Metaphors)" wrote in
  • edited April 2008
    Oops, yes that is what I meant. :)


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.