您好我是alfresco的新手,我正在尝试使用CMIS C#连接到alfresco存储库,但这会在尝试创建会话时产生错误,这是我的C#函数。
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();
}
显示以下错误
{&#34; ExceptionMessage&#34;:&#34; Not Found&#34;,&#34; ExceptionType&#34;:DotCMIS.Exceptions.CmisObjectNotFoundException&#34;,&#34; StackTrace&#34;: &#34; DotCMIS.Binding.AtomPub.AbstractMt.AbstractAtomPubService.GetRepositori上的DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(UrlBuild er url)在DotCMIS.Binding.Impl.BindingRepositoryService.GetRepositoryI nfos中的esInternal(String repositoryId)(IExtensionsData)扩展)在DotCMIS.Client.Impl.SessionFactory.GetRepositories(IDictiona ry`2参数,IObjectFactory objectFactory,AbstractAuthenticationProvider authenticationProvider,ICache缓存)