TechWhale.CRM.Header.LoadHeaderImg

2 views
Skip to first unread message

axsBrad

unread,
Dec 7, 2009, 1:04:32 PM12/7/09
to BlueWhaleCRM
I am having trouble accessing the session [UserProps] when deployed.
Worked fine in dev environment.

Error is.
System.NullReferenceException: Object reference not set to an instance
of an object.

Partial stack
[NullReferenceException: Object reference not set to an instance of an
object.]
TechWhale.CRM.Header.LoadHeaderImg() +151
TechWhale.CRM.Header.Page_Load(Object sender, EventArgs e) +726
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98



LoadHeaderImg function:
public void LoadHeaderImg() { if (this.Session["UserProps"] != null)
{ UserProperties properties = (UserProperties) this.Session
["UserProps"]; if (properties.NotificationEmail.Trim().Length > 0)
{ this.lnkMailSupport.NavigateUrl = "mailto:" +
properties.NotificationEmail;} if (properties.Logo.Trim().Length > 0)
{ this.imgHeader.ImageUrl = ConfigurationSettings.AppSettings
["UploadFolder"] + "/" + properties.ClientId.ToString() + "/" +
properties.Logo; } } }

TechWhale Support

unread,
Dec 7, 2009, 1:47:45 PM12/7/09
to BlueWhaleCRM
Check your session settings on your deployment box. I don't know how
it's configured, but it might have something to do with the
stateserver setting. Since it works in dev, it is likely a
configuration issue that can be solved via the web.config settings.
Reply all
Reply to author
Forward
0 new messages