owncloud-sharp icon indicating copy to clipboard operation
owncloud-sharp copied to clipboard

Problem with the CreateUser

Open Piero1978 opened this issue 7 years ago • 3 comments

Hi and congratulations for your library! I've a problem with the Client.CreateUser, I used the syntax:

var result = client.CreateUser(user, password);

where user and password are two string variables with, of course, the username and the password for the new user I want to create. But, I receive an exception:

System.Runtime.Serialization.SerializationException

Have you a solution for my problem? Thanks.

Piero1978 avatar Dec 18 '18 16:12 Piero1978

Same here! I used the original Project.cs from your test folder. The Exception comes up at Line 53: var a = c.CreateUser("test", "D8!di7As1"); System.AggregateException: SerializationException: Element "OCS" from Namespace "http://sechmas.datacontract.org/2004/07/owncloudsharp.Types" expected. Found "Element" with Name "ocs", Namespace ""

Anybody also having this issue or already fixed this issue? Thanks.

sanidzinic avatar Mar 08 '19 18:03 sanidzinic

Hi and congratulations for your library! I've a problem with the Client.CreateUser, I used the syntax:

var result = client.CreateUser(user, password);

where user and password are two string variables with, of course, the username and the password for the new user I want to create. But, I receive an exception:

System.Runtime.Serialization.SerializationException

Have you a solution for my problem? Thanks.

I solved the issue! The problem probably happens only if i use the NuGet Package. I created a build of the whole project and referenced it, tried again and now it works like a charm!

Maybe this could help you.

Cheers

sanidzinic avatar Mar 08 '19 20:03 sanidzinic

Which ownCloud or NextCloud version are you running?

bnoffer avatar May 07 '19 09:05 bnoffer