Could not load type 'UnityEngine.BitStream'

I’ve seen older threads with similar errors, but none have been helpful. I’m trying to build for Windows Phone on a Windows 8 machine with Visual Studio 2013 that has Windows Phone 8.1 SDK integrated and Unity version 4.5.0, and I experienced this same problem in 4.3.1. Here is the error I get:

Unhandled Exception: System.TypeLoadException: Could not load type ‘UnityEngine.BitStream’ from assembly ‘UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.

It works fine when building on a Windows 7 machine for Android and PC, and it works fine on a Mac building for iOS. I’ve searched the code for any obvious references to UnityEngine.BitStream and there are none. Any thoughts?

Networking classes are not yet supported on Windows Phone, with exception for WWW.

Hi, when do you receive this error message?

The message appears in the Unity console roughly three seconds after pressing the Build button.

Is there anything else in the console? Does it stop the build? It almost looks like one of your plugins is trying to use bitstream at compile time.

It does stop the build. I think you’re right, one of the third party .dll’s must be using that class.