System.Net.CredentialCache not found

Hi,

i need to do a HttpWebRequest against a SharePoint 2007 Server with NTLM Authentification.
For this purpose i need to use the CredentialCache in Systen.Net namespace.

VisualStudio says "The type or namespace name 'CredentialCache could not be found...".
But HttpWebRequest Class is found in this namespace.

Is this an error? Is there an alternative for doing a WebRequest with NTLM Authentification?

Thanks!

Posts

  • CraigDunnCraigDunn Xamurai USXamarin Team Xamurai

    Which Xamarin.Forms template are you using? According to MSDN CredentialCache doesn't appear to be available in PCL. HttpWebRequest is available in PCLs.

    You could try using the Shared Project template for your app, or use the DependencyService and implement your web request in the application projects if you wish to use the PCL template.

  • JohannesHinzJohannesHinz USMember

    Ok thanks. I'm using PCL and now i have fixed the problem so that i can use the Credential Cache.

  • ahmedkhanahmedkhan ✭✭ USUniversity ✭✭

    Johannes,

    Can you elaborate on how you authenticated to Sharepoint with .NET CredentialCache in a PCL?
    Any sample code would help as I want to do the same

    Thanks!
    ahmed

Sign In or Register to comment.