- Home /
failed to load mono dll error after game is build
Hi everyone, I have a big problem. I created my first game in Unity 3.2, and did the file/build settings to build it. Then I burned the exe and the data file directory onto a CD. My developer's machine is using Windows Vista. Right after I burned the CD, I tested the game and it ran without a problem. The menu came up, all the menu buttons work, and the game starts and quits.
I took it over to test it on a Windows XP machine, and everything works. The game works if I run it from the CD (it's a bit slow), or if I copy all the files to a new directory and run it from there.
This morning, I took the same CD and put it back on the developer's machine, and when I try to run it, I get a blue screen. The game window was completely blue color, none of the graphics show, and none of the menu buttons show.
A friend of mine suggested that I try running the CD as "administrator" instead of "user". When I logged back into the developer's machine as "administrator", and put in the CD, not only the CD would NOT run, but when I click on properties on the drive, it tells me that the CD is 0 bytes! Windows Explorer shows no files exist on the CD !
Then I log back into my developer's machine as "user", and this time, instead of the blue game window screen, it doesn't run at all. When I try to copy files to a new directory, Windows Explorer tells me that there's no files on the CD!
I then take the same CD back to the XP machine, and once again, everything works!
Has anyone come across this and how do you fix this ???
Answer by Xonatron · Dec 09, 2017 at 08:39 PM
I discovered another cause of this problem and solution. If your game is zipped and you extract it to a folder that is too long -- but still unzips fine -- this error can pop up. I believe it's due to the game accessing the data folder and mono.dll within its sub-folders... and somehow this access cannot be too deep in the directory structure. Move the game to a less long folder and it will work -- IF this was your problem in the first place.
Answer by Gabriel 1 · Aug 13, 2011 at 07:19 PM
This sounds exactly like the issue I just helped someone resolve on their stand alone build. They forgot to include the _data directory with their build. Since all of the external DLL's are in that directory the error makes perfect sense.
Make sure you've include the everything int he build directory, not just the exe.
Answer by 3Dgal · Mar 30, 2011 at 01:47 AM
I finally copied the files over to a Windows XP machine, and used Deepburner to burn the CD. The game now works!
Answer by alienwoods · Jun 30, 2013 at 09:58 AM
Hi,
I had the same problem u have to re install the C:/Program Files (x86)/Unity/* folder, because more files are missing, not just the file in the error.
Keeping an already installed unity in a zip can also saves time to fix this problem.