dotnet / dotnet/samples

403 in async-and-await sample

Open
#4,812 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
5.1k
Avg merge
9h 11m
Merged PRs (30d)
1

Description

Hi,

just tried the [sample](https://docs.microsoft.com/en-gb/previous-versions/visualstudio/visual-studio-2012/hh300224(v=vs.110)) which has 2 issues:

1) In the first few steps, it says to choose WPF App and name it... so I choose a wpf app for .NET Core 5.0, follow the guidelines a little further and it says make sure you are targeting .NET Framework 4.5. Why didn't it say that earlier?

2) I pasted in the bottom example in the end, run it with F5 then got a 403 error:

System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 403 (Forbidden).' at

wait SumPageSizesAsync();

Also, a .NET Core 5 example would be nice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.