The code don't work in order to retrieve error in dotnet

Goal:
Use dotnet source code of sentry in order to retrieve error.

Problem:
The code that I have retrieved and I tried to get a error message in the sentry website but no result will show.

What part am I missing?

Info:
https://dotnetfiddle.net/wfgaD5

Thank you!