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. Import contacts from Gmail and Yahoo in Asp.net

Import contacts from Gmail and Yahoo in Asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadminquestion
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.
  • N Offline
    N Offline
    NetMan2012
    wrote on last edited by
    #1

    Hello, I am trying to import gmail and yahoo contacts in my asp.net website. i m using OpenContactsNet.dll and using following code GmailExtract extractor = new GmailExtract(); NetworkCredential nc = new NetworkCredential(txtUserName.Text, txtPassword.Text); bool res = extractor.Extract(nc, out list); But this code is'nt working. I got false response :( what could be the reason?? The .Extract function gives the following error when executes the line of code HttpWebResponse exportResponse = (HttpWebResponse)contactsRequest.GetResponse(); Error: The remote server returned an error: (401) Unauthorized Please help me in this regard as i have tried every thing. I place the app on www root but still no luck.. plzz help

    N 1 Reply Last reply
    0
    • N NetMan2012

      Hello, I am trying to import gmail and yahoo contacts in my asp.net website. i m using OpenContactsNet.dll and using following code GmailExtract extractor = new GmailExtract(); NetworkCredential nc = new NetworkCredential(txtUserName.Text, txtPassword.Text); bool res = extractor.Extract(nc, out list); But this code is'nt working. I got false response :( what could be the reason?? The .Extract function gives the following error when executes the line of code HttpWebResponse exportResponse = (HttpWebResponse)contactsRequest.GetResponse(); Error: The remote server returned an error: (401) Unauthorized Please help me in this regard as i have tried every thing. I place the app on www root but still no luck.. plzz help

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Asfand wrote:

      Error: The remote server returned an error: (401) Unauthorized

      Hmmm, could it be the username and password are not correct?


      I know the language. I've read a book. - _Madmatt

      N 1 Reply Last reply
      0
      • N Not Active

        Asfand wrote:

        Error: The remote server returned an error: (401) Unauthorized

        Hmmm, could it be the username and password are not correct?


        I know the language. I've read a book. - _Madmatt

        N Offline
        N Offline
        NetMan2012
        wrote on last edited by
        #3

        I wish that could be the easiest reason but not on my case. Id and pass are perfect...

        N 1 Reply Last reply
        0
        • N NetMan2012

          I wish that could be the easiest reason but not on my case. Id and pass are perfect...

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Sometimes its the obvious things that trip us up, but not this time. Sorry, I'm not familiar with the API. Perhaps the credentials need to be set at a different level passed in a different manner.


          I know the language. I've read a book. - _Madmatt

          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