Import contacts from Gmail and Yahoo in Asp.net
-
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
-
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
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
-
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
I wish that could be the easiest reason but not on my case. Id and pass are perfect...
-
I wish that could be the easiest reason but not on my case. Id and pass are perfect...
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