[Mono-list] mod-mono bad crashing

Lorenzo Viola info at eulogika.net
Wed Sep 26 08:59:56 EDT 2007


I've come up with a guess about the crashing of apache2 :

to get reference to my database connection strings, and to be able
to select different databases from the same application, and
from different directory (on different levels) I use something like this :

        private ConnectionStringSettings ConnSettings = 
ConfigurationManager.ConnectionStrings["ConnectionString"];
        public string sConnectionString = "";

        public EuCoreNetWeb()
        {
            CheckConnectionString("");
        }

        public void CheckConnectionString(string sDatabaseName)
        {
            sConnectionString = ConnSettings.ConnectionString;
            if (sDatabaseName != "")
                sConnectionString = 
sConnectionString.Replace("DATABASE_SELECTED", sDatabaseName);
        }

Then I call this :

rECN.CheckConnectionString(Session["DATABASE_SELECTED"].ToString());


My question is : could it be that ConfigurationManager reads every time 
"web.config" file ?

if this is the case, the problem could be that at the crash point, the 
class couldn't find the right
web.config...

anyway, I'm still trying to figure out if this is the case...




More information about the Mono-list mailing list