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. Web Development
  3. ASP.NET
  4. Adding web reference problem because of autodetectcookiesupport

Adding web reference problem because of autodetectcookiesupport

Scheduled Pinned Locked Moved ASP.NET
helpquestionhtml
3 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.
  • A Offline
    A Offline
    AlexeiXX3
    wrote on last edited by
    #1

    I have a web service in my site, i have session statemanagement to autodetect wheter or not the browser has cookies enabled

    <sessionState
        mode="SQLServer"
        timeout="30"
        cookieless="AutoDetect"
    </sessionState>
    

    When i try to add the web reference i get an error: There was an error downloading 'http://localhost/V01/WebService.asmx?op=PedidosNuevos'. The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/V01/WebService.asmx?op=PedidosNuevos&AspxAutoDetectCookieSupport=1">here</a>.</h2> </body></html> In the add webreferece dialog, i can call the web method, i also called it from ie and it works as expected, the only problem is that i cant add it to my project as a web reference I think it must be because of the redirection to detect if cookies are enabled How can i add it?? Thanks for any help

    Alexei Rodriguez

    M 1 Reply Last reply
    0
    • A AlexeiXX3

      I have a web service in my site, i have session statemanagement to autodetect wheter or not the browser has cookies enabled

      <sessionState
          mode="SQLServer"
          timeout="30"
          cookieless="AutoDetect"
      </sessionState>
      

      When i try to add the web reference i get an error: There was an error downloading 'http://localhost/V01/WebService.asmx?op=PedidosNuevos'. The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/V01/WebService.asmx?op=PedidosNuevos&AspxAutoDetectCookieSupport=1">here</a>.</h2> </body></html> In the add webreferece dialog, i can call the web method, i also called it from ie and it works as expected, the only problem is that i cant add it to my project as a web reference I think it must be because of the redirection to detect if cookies are enabled How can i add it?? Thanks for any help

      Alexei Rodriguez

      M Offline
      M Offline
      mintxelas
      wrote on last edited by
      #2

      I had the same issue; The only way to solve it was to set cookieless="False" in order to add the web reference then set it back to AutoDetect. If you find a better solution, please let me know!

      A 1 Reply Last reply
      0
      • M mintxelas

        I had the same issue; The only way to solve it was to set cookieless="False" in order to add the web reference then set it back to AutoDetect. If you find a better solution, please let me know!

        A Offline
        A Offline
        AlexeiXX3
        wrote on last edited by
        #3

        Yes, i remember that problem, long time ago. I had to add to reference as follows: http://servername/WebService.asmx?WSDL&AspxAutoDetectCookieSupport=1 And i dont remember the reason why, but in my code behind in the load event i have this code: Me.webservice.Url &= "?AspxAutoDetectCookieSupport=1" In case you get an error add this part

        Alexei Rodriguez

        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