SSRS 2005 [modified]
-
Hello All, I am using SSRS 2005. I have problem on logon page, when cookie is not available. This should generate new cookie: But I am getting error and control returns. I am getting following error: [System.NullReferenceException] = {"Object reference not set to an instance of an object."} This comes with the 4th line of the code: Following is the code: internal static void RelayCookieToClient(Cookie cookie) { // add the cookie if not already in there if (HttpContext.Current.Response.Cookies[cookie.Name] == null) { HttpContext.Current.Response.Cookies.Remove(cookie.Name); } HttpContext.Current.Response.SetCookie(TranslateCookie(cookie)); //HttpContext.Current.Response.AppendCookie(TranslateCookie(cookie)); } -- modified at 1:13 Wednesday 28th November, 2007
-
Hello All, I am using SSRS 2005. I have problem on logon page, when cookie is not available. This should generate new cookie: But I am getting error and control returns. I am getting following error: [System.NullReferenceException] = {"Object reference not set to an instance of an object."} This comes with the 4th line of the code: Following is the code: internal static void RelayCookieToClient(Cookie cookie) { // add the cookie if not already in there if (HttpContext.Current.Response.Cookies[cookie.Name] == null) { HttpContext.Current.Response.Cookies.Remove(cookie.Name); } HttpContext.Current.Response.SetCookie(TranslateCookie(cookie)); //HttpContext.Current.Response.AppendCookie(TranslateCookie(cookie)); } -- modified at 1:13 Wednesday 28th November, 2007
There's 3 problems with your post. 1. Your title is too vague. Read the forum guidelines. 2. You haven't asked a specific question. 3. You've posted too much code. There's too much stuff to wade through. Again, identify what your problem specifically is and post only the code that is relevent.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
There's 3 problems with your post. 1. Your title is too vague. Read the forum guidelines. 2. You haven't asked a specific question. 3. You've posted too much code. There's too much stuff to wade through. Again, identify what your problem specifically is and post only the code that is relevent.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
Hello Paul, Can you help me please. I have modified the code. I have put one another message, please help me for that also. Please give me any clue. so that I do the required settings with my reporting server and for client pc. If any setting require with cookie management and DCOM etc. please let me know. Regards, Manoj Sinha
-
Hello Paul, Can you help me please. I have modified the code. I have put one another message, please help me for that also. Please give me any clue. so that I do the required settings with my reporting server and for client pc. If any setting require with cookie management and DCOM etc. please let me know. Regards, Manoj Sinha
I'm not really sure what the problem is. I can see that you have lifted the code from a Microsoft sample application though. In the Microsoft sample, they use
SetCookie
rather thanAppendCookie
. However I'm not sure whether this is significant. Is the code actually falling over on this line, or it it failing inTranslateCookie
?Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush