-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
DuckDBConnectionStringBuilder threw an exception #180
Comments
Even if you comment out that code and remove the static constructor completely, you will probably only delay the error. I'm not sure why that call is failing, but probably every native method call will fail because of the same reason. You could debug the library to see what exception is thrown when calling the native methods. By the way, using the library from Blazor isn't supported yet. See #169 |
Ok! Thanks for the quick response! :) |
The full exceptions is
|
Closing this, Blazor support is tracked in #169 |
I used Nuget to add DuckDB.NET.Data.Full (0.10.1.2) to my Blazor WebAssembly project.
I tried this code:
using var duckDBConnection = new DuckDBConnection("DataSource=:memory:");
duckDBConnection.Open();
As well as this code pointing to a local duckDB database:
using var duckDBConnection = new DuckDBConnection("DataSource=stocks.db");
duckDBConnection.Open();
Both methods give me this error on this part of the code: duckDBConnection.Open();
'The type initializer for 'DuckDB.NET.Data.DuckDBConnectionStringBuilder' threw an exception.'
Is there anything I need to add or change to fix this issue. I tried a try{} catch{} to get more info:
But I was unable to get more info about the problem. Any help is appreciated.
The text was updated successfully, but these errors were encountered: