Failed to connect to Firebird database from Visual Studio [RESOLVED]


Greetings, I'm trying to connect my Firebird database to Visual Studio; the connection from Firebird console shell, works and the service is active; it gives me exception error when connecting in Visual STudio; what happens in your opinion and how can I find the error? Place the connection string in :

appsettings.json

{

"ConnectionStrings": {

"DefaultConnection": "Database=C:\\Progetti\\;DataSource=localhost;User=SYSDBA;Password=masterkey;Port=3050;Role=;CharSet=NONE;"

},

"Logging": {

"LogLevel": {

"Default": "Information",

"Microsoft.AspNetCore": "Warning"

}

},

"AllowedHosts": "*"

}


IN THE FILE SERVICES :

THE CODE :

......


using (var conn = CreateConnection())

{

return (await conn.QueryAsync(sql)).ToList();

}

}

catch (Exception)

{

return new List();

}

After the execution, using (var conn = CreateConnection()) the state of database is CLOSED

WHY?



The same project and same DB on another Visual Studio Platform on WIN works.

Thanks



-------------------------------->


This morning I launched the project and now it works I don't understand what it can be. I think perhaps of some Firbird service that I had checked and it was active that did not work, so it may have affected the restart of my machine also I downloaded a certificate at the start of VS



1 Reply

SS Shereen Shajahan Syncfusion Team October 4, 2022 07:13 AM UTC

Hi Biagio,


We are happy to hear that the problem has been resolved by yourself. Please get back to us if you have any other concerns. As always, we will gladly assist you.


Regards,

Shereen


Loader.
Up arrow icon