You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Program
{
static void Main(string[] args)
{
Test();
Console.ReadKey();
}
static void Test\(\)
\{
var connectionString = new FbConnectionStringBuilder
\{
Charset = "WIN1251",
Database = "localhost:D:\\\\DataBases\\\\CM\\\\New2\\\\CMBASE \(2\)\.FDB",
UserID = "SYSDBA",
Password = "masterkey"
\};
var connection = new FbConnection\(connectionString\.ToString\(\)\);
try
\{
connection\.Open\(\);
Console\.WriteLine\("Connection is successful"\);
\}
catch \(Exception e\)
\{
Console\.Write\("ERROR: "\);
Console\.WriteLine\(e\);
\}
finally
\{
connection\.Close\(\);
\}
\}
\}
build project, run \bin\Debug\net461\MultiTargetConsoleApp.exe, output: "Connection is successful" as expected
but when you run core version dotnet .\bin\Debug\netcoreapp2.1\MultiTargetConsoleApp.dll output: ERROR: FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Invalid character set specified
If I set charset to NONE, error is disappear.
The text was updated successfully, but these errors were encountered:
Submitted by: jack128 (jack128)
Project:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="6.3.0" />
</ItemGroup>
</Project>
Code:
class Program
{
static void Main(string[] args)
{
Test();
Console.ReadKey();
}
build project, run \bin\Debug\net461\MultiTargetConsoleApp.exe, output: "Connection is successful" as expected
but when you run core version dotnet .\bin\Debug\netcoreapp2.1\MultiTargetConsoleApp.dll output: ERROR: FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Invalid character set specified
If I set charset to NONE, error is disappear.
The text was updated successfully, but these errors were encountered: