Setting the physical file path of an application with ColdFusion
Hopefully this tip will help someone down the road too, or maybe someone can enlighten me as to the "right" way to code for the physical file path of an application.
I was setting the following code in the OnApplicationStart() method to set the application's physical file path (http://mydomain.com/myApplication):
Well, it does...MOST of the time....I still haven't gotten to the bottom of it, but sometimes the rootpath would get set to nested directories (C:\inetpub\wwwroot\mydomain\myApplication\middle\). I can only assume that the application would sometimes reinit when it was in the middle of processing something in the "middle" directory.
Long story short, I'm about to deploy this code fix to (hopefully) resolve the problem:


There are no comments for this entry.
[Add Comment] [Subscribe to Comments]