The sample is quite old and doesn't work under .net framework higher than 3.5.
You may find another samples here
but they are also for .net 3.5.
Unfortunately, there is no development related to Dynamic Data since 2010 and we don't provide support for .net 4.0.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items