Unable to properly serialize object - Works in editor but not builds!

When I build a copy of my game for standalone or webplayer I get the following in my logs:

It seems like it’s constantly expecting the object on the previous line.

Anyone have experience with this happening? I haven’t noticed this because I’ve been running my game in the editor for a while now, but building it will not let my character move and I’m getting huge log spam of “Object Reference not set to an instance of an object”

somehow this has gone away

The most of the times this happens,it’s 'cause of another script with the same name but other extension.
I.E. MouseOrbit.cs Vs MouseOrbit.js

I hope this can help…
Tschus…

Thanks a lot, I was struggling with this. Good to know you can’t have duplicates in Js/c#