I've hit a problem that I just cannot fathom out what is wrong.

Here is the error and the line that it stops on :-

2021-07-30_192612.jpg

I read somewhere online that this might be down to the project references, so here is what I have :-

2021-07-30_193111.png


I'm totally stumped.

Thanks!