Note that there are some explanatory texts on larger screens.

plurals
  1. POConnecting to Sharepoint 2010 via DOTCMIS : exception authentication provider
    primarykey
    data
    text
    <p>I am trying to connect to sharepoint 2010 using DOTCMIS in C#. In a very similar fashion to this question:</p> <p><a href="https://stackoverflow.com/questions/10941809/connecting-via-cmis-dotcmis-to-sp2010-exception-unauthorised">Connecting via CMIS (dotCMIS) to SP2010: exception unauthorised</a></p> <p>(However, my code is running in a MSCRM 2011 custom workflow activity)</p> <p>My code is:</p> <pre><code> var parameters = new Dictionary&lt;string, string&gt;(); parameters[SessionParameter.BindingType] = BindingType.AtomPub; parameters[SessionParameter.AtomPubUrl] = "http://mySPServer/sites/scans/_vti_bin/cmis/rest/MyRepositoryIDGUID?getRepositoryInfo"; parameters[SessionParameter.User] = "MyUser"; parameters[SessionParameter.Password] = "MyPassword"; parameters[SessionParameter.AuthenticationProviderClass] = "DotCMIS.Binding.NtlmAuthenticationProvider"; var sessionFactory = SessionFactory.NewInstance(); return sessionFactory.GetRepositories(parameters)[0].CreateSession(); </code></pre> <p><strong>However whenever I run it I am currently getting the following exception:</strong></p> <p>Sif General Error: DotCMIS.Exceptions.CmisRuntimeException: Could not load authentictaion provider: Value cannot be null. Parameter name: type ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotCMIS.Binding.Impl.CmisBinding..ctor(IDictionary<code>2 sessionParameters, AbstractAuthenticationProvider authenticationProvider) --- End of inner exception stack trace --- at DotCMIS.Binding.Impl.CmisBinding..ctor(IDictionary</code>2 sessionParameters, AbstractAuthenticationProvider authenticationProvider) at DotCMIS.Client.Impl.CmisBindingHelper.CreateAtomPubBinding(IDictionary<code>2 parameters, AbstractAuthenticationProvider authenticationProvider) at DotCMIS.Client.Impl.SessionFactory.GetRepositories(IDictionary</code>2 parameters, IObjectFactory objectFactory, AbstractAuthenticationProvider authenticationProvider, ICache cache) at TPR.SIF.WorkflowActivity.SessionService.CreateNewSession(String dmWebServiceUrl, String userName, String password) at TPR.SIF.WorkflowActivity.SifService.SetUpServices(CodeActivityContext codeActivityContext) at TPR.SIF.WorkflowActivity.SifService.Execute(CodeActivityContext codeActivityContext)</p> <p>The error happens on the following line:</p> <pre><code> sessionFactory.GetRepositories(parameters)[0].CreateSession(); </code></pre> <p>which calls this line in the CMIS library </p> <pre><code> if (sessionParameters.TryGetValue(SessionParameter.AuthenticationProviderClass, out authenticationProviderClass)) { try { Type authProvType = Type.GetType(authenticationProviderClass); authenticationProvider = (AbstractAuthenticationProvider)Activator.CreateInstance(authProvType); </code></pre> <p>Does anyone know why <strong>"DotCMIS.Binding.NtlmAuthenticationProvider"</strong> cannot be created?</p> <p>Thanks very much.</p> <p>Sean.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload