ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,329 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
HI, I am trying to load a Gridview with the result of a query to Onedrive using Microsoft Graph, but it gives me the following error: The type System.Threading.Tasks cannot be loaded implicitly. I don't know if I have to convert the variable first, if another procedure is performed or if there is another way to do it.
Thanks.
private async Task Nube()
{
var Usuario = new GraphServiceClient(new
DelegateAuthenticationProvider(async Request =>
{
Request.Headers.Authorization = new
System.Net.Http.Headers.AuthenticationHeaderValue("Leonidas", "Token");
}));
var archivo = Usuario.Me.Drive.Root.Children
.Request()
.GetAsync()
.Result
;
GridView1.DataSource = archivo;
GridView1.DataBind();
}
Hi @Leonidas Carranza Oliva ,
You could ask your problems in Microsoft Graph.
Best regards,
Yijing Sun