How to update resource content during run time?

Hi,


Is there a way to update resources file content during run time? I tried to implement the logic below but get access denied to path error.

Thank you,

Lanz

Hi Lanz,

Can you explain what's your goal with updating the resource like that?

Jorge Martins wrote:

Hi Lanz,

Can you explain what's your goal with updating the resource like that?


Hi Jorge,

The content of our resource file will be coming from the database data made in UAT server.

When we publish the application with that resource file in PRD, we need to populate the PRD database base on that resource file.


Thank you,

Lanz

Lanz,

When you deploy from UAT to Production, you select the applications/modules to upload and LifeTime will get the published version's definition from the version database and send that to production to be deployed: it will not use the file structured deployed into your Web Application Server at the time.

What you can do is not have a bootstrap process that runs automatically, but have a back-office to which you upload the resource that you want to bootstrap from. Either that or instead of bootstrapping from a resource on the module itself, you read it from a network share: you first extract the resource from UAT, save it in the network share and then deploy to Production (that will read the resource from the network share). 

Jorge Martins wrote:

Lanz,

When you deploy from UAT to Production, you select the applications/modules to upload and LifeTime will get the published version's definition from the version database and send that to production to be deployed: it will not use the file structured deployed into your Web Application Server at the time.

What you can do is not have a bootstrap process that runs automatically, but have a back-office to which you upload the resource that you want to bootstrap from. Either that or instead of bootstrapping from a resource on the module itself, you read it from a network share: you first extract the resource from UAT, save it in the network share and then deploy to Production (that will read the resource from the network share). 

Hi Jorge,

Currently, we already have a back office to extract and upload the resource from UAT to PRD.  But we have another requirement to automate this process. We can't do network share because there is some security issues that they don't allow UAT to PRD to communicate other that lifetime. If we can update the resource file during run time(Which contains updated data from UAT). I am thinking of to create a timer that calls bootstrap from the resource file and runs only when publish(This means publishing from UAT to PRD). Do you think is this a feasible approach?


Regards,

Lanz