Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SSRS 2005 [modified]

SSRS 2005 [modified]

Scheduled Pinned Locked Moved Database
helpsql-server
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MSinha
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • M MSinha

      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

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • P pmarfleet

        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

        M Offline
        M Offline
        MSinha
        wrote on last edited by
        #3

        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

        P 1 Reply Last reply
        0
        • M MSinha

          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

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          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 than AppendCookie. However I'm not sure whether this is significant. Is the code actually falling over on this line, or it it failing in TranslateCookie?

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups