published asp.net web application pointing to local machine
<p>I have a published asp.net application. I sometimes run into a "Object reference not set to an instance of an object" Because it is pointing  to my development machine(C:\Users\Dropbox\etc). I made sure that the build is on release before I release. I am not sure why it calling my dev machine. Below is the session Property I am trying to read from. Anything I need to do on my machine to fix this problem? Thank you for any help.</p>

<pre><code> public static User User
    {
        get
        {
            User userLogin = null;
            object sessionVar = Session[USERLOGIN];
            if (sessionVar != null)
            {
                userLogin = (User)sessionVar;
            }
            return userLogin;
        }
        set { Session[USERLOGIN] = value; }
    }
</code></pre>
