首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用cmis C#连接Alfresco仓库

用cmis C#连接Alfresco仓库
EN

Stack Overflow用户
提问于 2017-06-08 12:57:04
回答 1查看 951关注 0票数 0

你好,我是新手,我正在尝试使用CMIS C#连接到alfresco存储库,但是这会在尝试创建会话时创建一个错误--这里是我的C#函数。

代码语言:javascript
复制
public void connecttofirstrepository()
{
    Dictionary<string, string> parameters = new Dictionary<string, string>();
    parameters[SessionParameter.BindingType] = BindingType.AtomPub;
    parameters[SessionParameter.AtomPubUrl]= "http://172.20.0.113:8080/alfresco/service/cmis";
    parameters[SessionParameter.User] = "username";
    parameters[SessionParameter.Password] = "password";
    SessionFactory factory = SessionFactory.NewInstance();
    ISession session = factory.GetRepositories(parameters)[0].CreateSession();                   
}

它显示了以下错误

{"ExceptionMessage":“未找到”,"ExceptionType":DotCMIS.Exceptions.CmisObjectNotFoundException","StackTrace":"at DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(UrlBuild‌​er url at DotCMIS.Binding.AtomPub.AbstractAtomPubService.GetRepositori‌​esInternal(String repositoryId( at DotCMIS.Binding.AtomPub.AbstractAtomPubService.GetRepositori‌​esInternal(String repositoryId) at DotCMIS.Binding.Impl.BindingRepositoryService.GetRepositoryI‌​nfos(IExtensionsData extension) ) DotCMIS.Client.Impl.SessionFactory.GetRepositories(IDictiona‌​ry`2参数,IObjectFactory objectFactory,AbstractAuthenticationProvider authenticationProvider,ICache cache)

EN

回答 1

Stack Overflow用户

发布于 2017-06-12 21:36:31

使用正确的CMIS服务URL对您的Alfresco版本是非常重要的,因为它在不同版本之间已经更改了好几次。

有关按版本分列的CMIS服务URL列表,请参见维基

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44436414

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档