AnsweredAssumed Answered

CMIS .NET error

Question asked by unknown-user on Nov 5, 2009
Latest reply on Nov 5, 2009 by unknown-user
Can someone help?
I am trying to execute the following line of code in Visual Studio 2008 and I get an error.

  repositoryService = new RepositoryServicePortClient();
            repositoryService.ClientCredentials.UserName.UserName = "admin";
            repositoryService.ClientCredentials.UserName.Password = "admin";


The error states:

Channel = '((System.ServiceModel.ClientBase<Alfresco.RepositoryService.RepositoryServicePort>)(repositoryService)).Channel' threw an exception of type 'System.ServiceModel.CommunicationObjectFaultedException'

I tried two different methods of instantiation and it fails with the same error.

L also have this error genrated
InnerChannel = '((System.ServiceModel.ClientBase<Alfresco.RepositoryService.RepositoryServicePort>)(repositoryService)).InnerChannel' threw an exception of type 'System.ServiceModel.CommunicationObjectFaultedException'

base {System.Exception} = {"The communication object, System.ServiceModel.ChannelFactory`1[Alfresco.RepositoryService.RepositoryServicePort], cannot be used for communication because it is in the Faulted state."}

This is a simple instantiation.
I am not sure how this is occurring.

Outcomes