I tried to reference System.Device in a Razor view of my MVC C# project. It complained that the reference was missing even after I added it to the project. I did not have the assembly in my GAC, and to test I added the below dummy line in my global.asax.cs file (and compiled with multiple debug flags enabled, I wouldn't imagine it was optimized away). I tried to reference System.Device in a Razor v