Groups > Application developers > Community Server Setup and Installation > Trouble getting Addon module for Cookies running




Trouble getting Addon module for Cookies running

Trouble getting Addon module for Cookies running
Thu, 29 Nov 2007 15:45:18 +000
I am trying to get the addon module for cookies running.  We run a support
portal site, and from that site we want to be able to click a link then be
redirected over to the CS site, already logged in.   

I tried using the CookieAuthTest.aspx, and my own page from the live site, and
both are throwing this error when it tries to read the cookie.

Any ideas what to try to do?  Server Error in '/forums' Application. 


Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current
web request. Please review the stack trace for more information about the error
and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an
instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can be
identified using the exception stack trace below.
Stack Trace:



[NullReferenceException: Object reference not set to an instance of an object.]
   Telligent.CommunityServer.Security.CookieAuthentication.ProcessRequest()
+380
   CommunityServer.CSHttpModule.Application_AuthenticateRequest(Object source,
EventArgs e) +695

[CSException: Error in AuthenticateRequest]
   CommunityServer.CSHttpModule.Application_AuthenticateRequest(Object source,
EventArgs e) +758
  
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Exec
ute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET
Version:2.0.50727.1433 

 

Here is my code just for referance...Dim oContact As ccProfile.Contact =
ccProfile.Contact.Lookup(Session("ContactID"))
Response.Cookies("CSUser").Path = "/"
Response.Cookies("CSUser").Expires = DateAdd("d", 1, Now())
Response.Cookies("CSUser")("username") = oContact.Username
Response.Cookies("CSUser")("email") = oContact.Email
Response.Redirect("/forums")
Post Reply
about | contact