Hi.
I've been trying to make this example code work and have fixed a few problems with it locally. But there is one bug that makes it crash so I can't even debug it correctly.
It is as follows.
The web part installs and is activated. When I add it to a page it crashes with an error "Object reference not set to instance of an object".
When I debug it as far as I can I get to the following line:
There are numerous comments on the article itself about various errors but I cannot add a new comment (hence posting here).
Why does a Microsoft example not work?