System.IO Error

Hi !

I was working in unity and everything worked well. But suddenly I got this exception :

System.IO.Directory does not contain a definition for Delete.

I tried to comment it, but then several exceptions of the same type appeared.

I reinstalled the .Net Framework and Unity. But nothing has changed.

Thanks a lot for your help.

I found the solution, I used bundles in my project, and when i built an assetbundle, the project settings changed from PC Standalone to Web Player, that why unity didn’t found Directory.IO, because Web Player can’t access to directory Input/Output.

I hope this will help.

Folks, this will happen when you update to Daydream too. This solves the issue, thanks for posting the answer! (just need to install and load the Android module again)