You might have some problems if you are using Device Profile for Web Services on the current version of NETMF.
Do the following to resolve the issue:
- Remove all DPWS references from your project.
- Download the assembly at this link:
- Add the downloaded assembly to your project. This one replaces: