Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load type 'FirebirdSql.Data.FirebirdClient.FbConnectionString' from assembly 'FirebirdSql.Data.FirebirdClient' [DNET543] #520

Closed
firebird-automations opened this issue Feb 11, 2014 · 4 comments

Comments

@firebird-automations
Copy link

Submitted by: Rustam Rakhimov (jose89)

Executing the following code:

using UnityEngine;
using System.Collections;
using System.Data;
using FirebirdSql.Data.FirebirdClient;

public class SQLConnection : MonoBehaviour {

void Start \(\) \{
	string conn = "Database=D:\\\\DB\\\\MAIN\.FDB;" \+ "User=SYSDBA;" \+ "Password=masterkey;" \+ "Dialect=3;" \+ "Server=localhost";
	FbConnection dbcon = new FbConnection\(conn\);
\}

}

raises an exception:

TypeLoadException: Could not load type 'FirebirdSql.Data.FirebirdClient.FbConnectionString' from assembly 'FirebirdSql.Data.FirebirdClient, Version=4.1.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c'.
(wrapper remoting-invoke-with-check) FirebirdSql.Data.FirebirdClient.FbConnection:.ctor (string)
SQLConnection.Start () (at Assets/SQLConnection.cs:11)

Library file "FirebirdSql.Data.FirebirdClient.dll" is in the Unity project folder (Assets/Plugins)

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Sure. The FbConnectionString is an internal class. It's (probably) Unity's problem.

@firebird-automations
Copy link
Author

Commented by: Rustam Rakhimov (jose89)

Thanks for reply. I downloaded Firebird http://ADO.NET Data Provider 2.5.2 for .NET 3.5/2.0 and for some reasons it's dll works correctly.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Of course there's a jump between 2.5.2 and 4.1.0, maybe you need to adjust your Unity configuration.

Are you sure you're using proper version for you (.NET 4.0 vs .NET 4.5)? Don't know what's inside the error, but might be http://blog.cincura.net/233101-error-could-not-load-type-system-runtime-compilerservices-extensionattribute-from-assembly-mscorlib-version4-0-0-0-cultureneutral-publickeytokenb77a5c561934e089-on-net-4-0-net-4-5/ related.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Incomplete [ 4 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants