Error with Resources.Load

Hello,

I´ve been trying to get my game to work under Windows Store Apps, but I just cant get past this error:

The code is there, I dont usually do all that just to instantiate a prefab, the line was just Instantiate((GameObject)Resources.Load(“DataStore”, typeof(GameObject)); but I´ve been trying to do it differently, cause I have no idea what to do.

Can anyone please help me?

Thanks in advance,
Best regards,
Allan

PS: The error is in the first Resources.Load call… I dont know exactly which error though =(

What exactly is DataStore?

Its a class with a ton of info I use in the game. Lists, Dictionaries, Arrays, custom classes… but it barely has any methods, its basically just an organized repository of information for quick access in runtime. It is a MonoBehaviour.

Does it use ArrayLists or Hashtables? Chances are one of the collection types of classes in it isn’t supported in Windows Store Apps.

And why are you instantiating code as a GameObject? That makes no sense.

This is what DataStore looks like, basically:

The same script also has some classes declarations, they are all similar or more simple than the one Im showing below.

1370233--68896--$Screen Shot 2013-09-27 at 00.58.02.png

This does work on every other platform I’ve tried so far… Mac, ios, android, blackberry, pc, web… =/

Its a prefab. I make a ton of configurations on this prefab, I use it as a local database… that is why I instantiate code as GameObject. If there is a better way to do this I would gladly do it in another way… but its the only way I know unfortunately.

Looks like a bug, can you report it ?

Sure. But is there anything I could at least try to get it working? unfortunately this DataStore is crucial to my project (everything depends on it), but if there was something different I could try… I dont know… I really wanted to be able to send it over for the contest =(

Enable exceptions in Debug->Exceptions, and continue until you hit this exception, then add “this” word to watch, this way you’ll be able to determine where the serialization error occurs.

Alright, I will try it. Will update when I have news. Thank you