Quantcast
Channel: Latest Questions by alienx2
Viewing all articles
Browse latest Browse all 10

Can't Connect to SQLite after Build.....

$
0
0

I have problem about between SQLite and Unity.. look below:

http://dl.dropbox.com/u/563640/UnityWeb/UnityForum/InEditor.jpgIn Unity Editor (Working)

alt textAfter Build, Unity Web player (Not Work)

I tested on HTTP and localhost and root folder...

Why its not showing up in webplayer after build? Did i miss something? or something wrong with DLL file? :confused: and my script look below:

here script:

using UnityEngine;
using Mono.Data.SqliteClient;
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;

public class SQLiteServer : MonoBehaviour {

    private static IDbConnection dbcmd;

    private D jsScript;

    // Use this for initialization
    void Start () {
        jsScript = GameObject.Find("GUI Text").GetComponent<D>(); //Debug mode

        string connectionString = "URI="+ Application.dataPath + "/test.db"; // directory for MAC

        jsScript.msg = "Prepare Connect...";

        IDbConnection conn;

        conn = new SqliteConnection(connectionString);

        jsScript.msg = "Prepare Connect 2..."; //Stuck in Webplayer

        conn.Open();

        print("Connection: " + conn.State);
        jsScript.msg = "Connection: " + conn.State; //No Show... 

        IDbCommand dbcmd = conn.CreateCommand();

I did put DLL to ../Assets/Libraries/:

  • I18N.dll
  • I18N.West.dll
  • Mono.Data.SqliteClient.dll
  • sqlite3.dll System.Configuration.dll
  • System.Data.dll System.Drawing.dll
  • System.EnterpriseServices.dll
  • System.Security.dll

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images