Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the CreateUser #40

Open
Piero1978 opened this issue Dec 18, 2018 · 3 comments
Open

Problem with the CreateUser #40

Piero1978 opened this issue Dec 18, 2018 · 3 comments
Assignees
Labels
bug needs-info Additional infromation required.
Milestone

Comments

@Piero1978
Copy link

Piero1978 commented Dec 18, 2018

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.

@sanidzinic
Copy link

sanidzinic commented Mar 8, 2019

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
Copy link

sanidzinic commented Mar 8, 2019

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

@bnoffer
Copy link
Owner

bnoffer commented May 7, 2019

Which ownCloud or NextCloud version are you running?

@bnoffer bnoffer added bug needs-info Additional infromation required. labels May 7, 2019
@bnoffer bnoffer self-assigned this Aug 21, 2019
@bnoffer bnoffer added this to the ownCloud# 2.0 milestone Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs-info Additional infromation required.
Projects
None yet
Development

No branches or pull requests

3 participants