I am trying to integrate CuteChat with a membership-based website which is built on the Ektron CMS Platform
I have configured CuteChat as it's own application in our main web folder, as I do not want to deal with conflicing web.configs.
web.config,global.asax,/bin/ are all in the /cutesoft_client/ folder
I have edited the global.asax file to talk to our membership DB.
example:
//Return user's display name
public string GetUserDisplayName(string useruniquename)
{
string connStr = GetConnString();
SqlConnection conn = new SqlConnection(connStr);
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText =
"select Display_Name from dbo.Users where User_Name='" + Request.Cookies["ecm"]["username"] + "'";
SqlDataReader Reader = cmd.ExecuteReader();
string DisplayName = (string)Reader.GetValue(0); //Gets the Display Name of the User
return DisplayName;
}
}
However, when I launch the CuteSoft_Client/CuteChat/CH_MainForm.aspx, I am getting an error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 16: LocationId=Request.QueryString["LocationId"];
Line 17: Location=Request.QueryString["Location"];
Line 18: SkinName="Skins/"+ CuteSoft.Chat.ChatWebUtility.SkinName + "/style.css";
Line 19: if(ChatWebUtility.IsDownLevelBrowser)
Line 20: {
|
seems to me that it is looking for some sort of configuration setting:
Source File: c:\Inetpub\development\htdocs\CuteSoft_Client\CuteChat\CH_MainForm.aspx Line: 18
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
CuteSoft.Chat.ChatDataManager.GetConfigs() +66
CuteSoft.Chat.ChatDataManager.GetConfig(String configname) +17
CuteSoft.Chat.ChatApiImpl.DoGetConfig(String name) +149
CuteSoft.Chat.ChatApiImpl.GetConfig(String name) +66
CuteSoft.Chat.ChatWebUtility.GetUserAdapter() +77
CuteSoft.Chat.ChatWebUtility.get_CurrentIdentity() +76
CuteSoft.Chat.ChatWebUtility.get_SkinName() +7
ASP.cutechat_ch_mainform_aspx.OnInit(EventArgs args) in c:\Inetpub\development\htdocs\CuteSoft_Client\CuteChat\CH_MainForm.aspx:18
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
|
I am wondering if I am missing something here - could you point me towards the right direction?
BTW: I am getting the same error when I go to /Admin/
Thank you!