Atozed Forums
invalid cache dir - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: invalid cache dir (/thread-3589.html)



invalid cache dir - joergb - 10-26-2023

hallo

I will run my first little app standalone on a new PC
but  the app won't start, in the LOG is an exception "invalid cache directory d:\temp"

On the new PC , d:\temp doesn't exist, its the Temp-Dir on the Developer PC.
If I create d:\temp on the new PC , the app started normaly

But I can't find the place, where it can be changed.

Thanks

  Jörg


RE: invalid cache dir - joelcc - 10-26-2023

It is on the servercontroller.CacheDir

I use something like the following in the code to set it from an xml file.

if Sysutils.ForceDirectories(SystemParams.ServerControllerParams.CacheDir) then
CacheDir := SystemParams.ServerControllerParams.CacheDir;


RE: invalid cache dir - Alexandre Machado - 10-27-2023

Yes, @joelcc is correct.

The ideal place to set this is the OnConfig event of the ServerController object.


RE: invalid cache dir - joergb - 10-28-2023

(10-27-2023, 09:33 AM)joergb Wrote: thanks for your answers.


I found my error.
It was a little bit tricky to find it, 'cause the Constructor of ServerControlerBase throwed the Exception, this is before anyting of a app starts.

Thanks again
 Jörg