Why I cannot access static properties within console app which is assigned in web app?

May 22, 2013 at 4:59 AM
Edited May 22, 2013 at 5:02 AM
I wrote an console app with CassiniDev. it works fine except when I access a static properties of a static class in console app and web site app. it come out difference values .
public static class AppEnv
{
    private static int _LogUserNums =0;
    
  // this is call inside website 
   static public void AddLogUserNums()
   {
           LogUserNums ++;
   }
  // this is call in console app but always return 0
   static public int LogUserNums   { get{return _LogUserNums;}}
}
Is it possible to run the console app and web application in same application domain? any ideas?