- Home /
Can't build for the web player when using Npgsql.dll
I've looked through a lot of forums today and finally got my application to query from my PostgreSQL database with no problems. These are the issues I ran into:
I first got this error: Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'Npgsql.NpgsqlConnection' from assembly 'Npgsql, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7'. But was able to delete the library folder and reset everything: http://forum.unity3d.com/threads/139887-Data-does-not-exist-in-the-namespace-System
Also, the ExecuteReader() command crashed Unity but thanks to this post: http://forum.unity3d.com/threads/202134-Unity3d-Postgresql-npgsql-Crashes-when-i-call-Reed() I got it working.
The second post led me to use the Npgsql.dll from this folder ('Npgsql2.0rtm-bin-mss.net3.5sp1.zip') on the pgFoundry page. So when everything seemed to be working and I went to build the application it spits out this again: Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'Npgsql.NpgsqlConnection' from assembly 'Npgsql, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7'. The same error from before. I'm currently using Unity 4.3.3 but I'm about to try 4.3.4.
Any ideas on what I need to do to successfully build my project to put it on the web?