【发布时间】:2012-06-08 00:48:02
【问题描述】:
我正在使用 dotCMIS,并且想简单地连接到我的 SP2010 服务器。我试图用 C# 来做到这一点,就像第一部分中的 http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html 一样
所以我有这样的事情:
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters[SessionParameter.BindingType] = BindingType.AtomPub;
parameters[SessionParameter.AtomPubUrl] = "http://mysharepoint";
parameters[SessionParameter.User] = "SPAdmin";
parameters[SessionParameter.Password] = "1234sharepoint";
SessionFactory factory = SessionFactory.NewInstance();
ISession session = factory.GetRepositories(parameters)[0].CreateSession(); //exception unathorized
但我总是遇到例外:DotCMIS.Expcetions.CmisRunterimException: Unathorised
有什么想法吗?通过浏览器,我可以使用相同的用户/密码登录到该站点,所以这可能不是问题。起初,由于 NTLM 问题(https://issues.apache.org/jira/browse/CMIS-531),我坚持使用它,但即使我使用parameters[SessionParameter.AuthenticationProviderClass] = "DotCMIS.Binding.NtlmAuthenticationProvider";,它也是同样的例外。好吧......这个例外并没有真正帮助我。我希望我能获得更多信息——也许有更好的方法?我还能尝试什么?谢谢!
PS:是的,在我开始使用 dotCMIS 之前,我确实安装并配置了 MS CMIS 连接器:http://technet.microsoft.com/en-us/library/ff934619.aspx
【问题讨论】:
标签: c# apache sharepoint cmis dotcmis