VN:F [1.9.11_1134]
Rating: 0.0/5 (0 votes cast)

I’ve spent the last couple hours debugging an authentication issue with LinkShare‘s Link Locator Direct web service. My console app was throwing the following exception:

System.Web.Services.Protocols.SoapException: org.apache.axis.AxisFault:Pass in username/password

NOTE FROM THE AUTHOR, RORY HANSEN
Have you found this post helpful?
If so, I'd appreciate if you could indicate so by pressing the Google Plus button below.

The error message seems straight-forward enough– “Pass in username/password.” But what do you do if you know you are passing in the username and password?

This was the code I was using:

LinkShareTextPromotion.EJBTextPromotionServiceService tp =
     new LinkShareTextPromotion.EJBTextPromotionServiceService();
tp.Credentials = new NetworkCredential(username, password);
tp.PreAuthenticate = true;
LinkShareTextPromotion.Text[] results  = tp.GetAllLinks(sid);

Anyway, I finally lucked out and stumbled onto this link on the LinkShare forums, which lead me to Gordon Weakliem’s blog that had a working solution. Apparently this problem occurs due to how .NET authenticates.

If you’re experiencing the same error and got here via Google, then I hope this helps you get on your way.

VN:F [1.9.11_1134]
Rating: 0.0/5 (0 votes cast)

Related posts:

  1. Update on Text-Link-Ads: Over $70 per month, no work
  2. 5 months later, making $40/month using Text-Link-Ads.com
  3. So far, $20+ per month using Text-Link-Ads.com
  4. CodeIgniter Blank Page Fix: Blank webpage when setting up CodeIgniter, PHP, MySQL, and Apache
  5. Top Commentators half-way through November (Easy way to get a link to your site)

One Comment to “Authenticating with LinkShare’s Link Locator Direct web service with C#”

  • Can you explain the working code with a VB.net illustration. Thank you so much

Post comment