Mscorlib exception when building for HTML5

Thanks for the help. I found out what the problem was. It turns out the solution to my problem was simply to build my game project in Visual Studio with the “Development” setup for the Windows platform. Then I could package my game for HTML5 without errors!