Use commonFilesDirectory in development

Looking for a simple way to share the media files between developers during the dev process… Should we use commonFilesDirectory in development to store the media files in a single place? Or do we need the whole multi-server environment setup then?

Litium version: 7.2.3

You can use CommonFilesDirectory but you will be out of sync when other developers changes anything, so if it’s ok to restart and reindex for each developer when start working then you don’t need multiserver environment.

Ok, I did a quick try with a shared network folder but did get an error at start.
Application was not able to start: \\SHAREDSERVER\Files Litium.Foundation.Data.FileWriteFailureException

Any clues on what i’m missing?

Maybe you do not have access rights to the folder for writing maybe?

The folder is set to allow all users on the local network and it’s no problem to navigate and create files from the explorer.

What is the error exception in logs?

This is what is displayed in the log at startup:

2019-09-11 10:19:19.7754 [App:04] [3bbad942-59a7-4782-9c6b-6151f18587db] [FATAL] [] Litium.Foundation.GUI.FoundationApplicationSetup - Application was not able to start: \\SHAREDSERVER\Files Litium.Foundation.Data.FileWriteFailureException: \\SHAREDSERVER\Files
   at Litium.Foundation.Solution.AssertWriteToDisc(String filesDirectory, Boolean useRandomTestFile)
   at Litium.Foundation.Solution..ctor(DataSettings dataSettings, AccountSettings accountSettings)
   at Litium.Foundation.GUI.FoundationApplicationSetup.CreateInstance()
   at Litium.Foundation.GUI.FoundationApplicationSetup.Setup(IEnumerable`1 assemblies)
2019-09-11 10:19:19.7754 [App:04] [] [FATAL] [] Litium.Owin.Lifecycle.Application - Exception in Litium

appId=/LM/W3SVC/18/ROOT

type=Litium.Foundation.Data.FileWriteFailureException
message=\\SHAREDSERVER\Files
stack=
   at Litium.Foundation.Solution.AssertWriteToDisc(String filesDirectory, Boolean useRandomTestFile)
   at Litium.Foundation.Solution..ctor(DataSettings dataSettings, AccountSettings accountSettings)
   at Litium.Foundation.GUI.FoundationApplicationSetup.CreateInstance()
   at Litium.Foundation.GUI.FoundationApplicationSetup.Setup(IEnumerable`1 assemblies)
   at Litium.Owin.Lifecycle.Application.ExecuteSetupTask(Assembly[] assemblies, IEnumerable`1 types)
   at Litium.Owin.Lifecycle.Application.Start(IEnumerable`1 assemblies, IEnumerable`1 typesToIgnore)
   at Litium.Web.Runtime.LitiumHttpModule..ctor()

Maybe your url does not match, something is missing in the beginning?

You need to setup the application pool in IIS to be using a domain account to allow that to login to the network share.

Ok, thanks for the info

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.