Skip to content

Fault @ c.List() - Please assist #35

@mculloa

Description

@mculloa

I have the following code with the correct UN and PW, yet the code continues to error out (NOTE: There is no trouble connecting via WebDAV using SCP or other clients):
IClient c = new Client(new NetworkCredential { UserName = USERNAME, Password = PASSWORD });
c.Server = "https://app.latista.com";
c.BasePath="/webdav/messer/project_133/Test""
var files = await c.List(); //await c.List();

error CS4033: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'.
c.List()
Id = 12, Status = Faulted, Method = "{null}", Result = "{Not yet computed}"
AsyncState: null
CancellationPending: false
CreationOptions: None
Exception: Count = 1
Id: 12
Result: null
Status: Faulted

Any thoughts?
Thanks - Mike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions