Subject | Re: Firebird Embedded on web hosting |
---|---|
Author | |
Post date | 2015-09-22T16:24:34Z |
waow ! i have learned something today :)
i didn't know that envirenment options are associated to the process and not to the machine .
anyway many many thanks it's solved now ... finally :)
if anyone else have this problem maybe in the future, this is what worked for me
/*this will give absolute path on the server */
string s = Path.GetDirectoryName(Server.MapPath("Default.aspx"));
/* some logic only for me */
s = s.Replace("v1", "Bin\\FIREBIRD_LOCK");
Environment.SetEnvironmentVariable("FIREBIRD_LOCK", s);
/* after that you can make calls to the database or instanciate entity framework context */