-
- Notifications
You must be signed in to change notification settings - Fork 74
Description
I'm getting the following exception when I try to connect to my database. The only thing I did as upgrading from 8.0.1 to 8.5.1
by using Nuget. I'm using Firebird 2.5.8 and .Net 4.8. I also added an example application which also throws this exception.
I hope that I followed the correct rules for this contribution and if not sorry for the inconveniance. Thanks for you support already.
'ConsoleApp1.exe' (CLR v4.0.30319: ConsoleApp1.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
Exception thrown: 'System.Data.Entity.Core.ProviderIncompatibleException' in EntityFramework.dll
'ConsoleApp1.exe' (CLR v4.0.30319: ConsoleApp1.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Transactions.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Transactions.resources.dll'. Module was built without symbols.
System.Transactions Critical: 0 : http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/UnhandledNiet-verwerkte uitzonderingConsoleApp1.exeSystem.Data.Entity.Core.ProviderIncompatibleException, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure. bij
ConsoleApp1.zip
System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)
bij System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.<>c__DisplayClass1_0.<ResolveManifestToken>b__0(Tuple3 k) bij System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory) bij System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection) bij System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest&amp; providerManifest) bij System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) bij System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) bij System.Data.Entity.Internal.RetryLazy
2.GetValue(TInput input)
bij System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
bij System.Data.Entity.Internal.InternalContext.Initialize()
bij System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
bij System.Data.Entity.Internal.Linq.InternalSet1.Initialize() bij System.Data.Entity.Internal.Linq.InternalSet
1.GetEnumerator()
bij System.Data.Entity.Infrastructure.DbQuery1.System.Collections.Generic.IEnumerable&lt;TResult&gt;.GetEnumerator() bij ConsoleApp1.Program.Main(String[] args) in r:\data\ConsoleApp1\ConsoleApp1\Program.cs:regel 18</StackTrace><ExceptionString>System.Data.Entity.Core.ProviderIncompatibleException: An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure. ---&gt; System.Data.Entity.Core.ProviderIncompatibleException: The provider did not return a ProviderManifestToken string. ---&gt; System.InvalidOperationException: Could not retrieve storage version. ---&gt; FirebirdSql.Data.FirebirdClient.FbException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld. Parameternaam: s ---&gt; System.ArgumentNullException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld. Parameternaam: s bij System.Text.Encoding.GetBytes(String s) bij FirebirdSql.Data.Services.FbService.BuildSpb() bij FirebirdSql.Data.Services.FbService.Open() --- Einde van intern uitzonderingsstackpad --- bij FirebirdSql.Data.Services.FbService.Open() bij FirebirdSql.Data.Services.FbService.QueryService(Byte[] items, ServiceParameterBufferBase spb) bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb, Action
2 queryResponseAction)
bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb)
bij FirebirdSql.Data.Services.FbServerProperties.GetInfo(Int32 item)
bij FirebirdSql.Data.Services.FbServerProperties.GetString(Int32 item)
bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)
--- Einde van intern uitzonderingsstackpad ---
bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)
bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
--- Einde van intern uitzonderingsstackpad ---
bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
bij System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)
--- Einde van intern uitzonderingsstackpad ---
bij System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)
bij System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.<>c__DisplayClass1_0.<ResolveManifestToken>b__0(Tuple3 k) bij System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func2 valueFactory) bij System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection) bij System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest&amp; providerManifest) bij System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) bij System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) bij System.Data.Entity.Internal.RetryLazy
2.GetValue(TInput input)
bij System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
bij System.Data.Entity.Internal.InternalContext.Initialize()
bij System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
bij System.Data.Entity.Internal.Linq.InternalSet1.Initialize() bij System.Data.Entity.Internal.Linq.InternalSet
1.GetEnumerator()
bij System.Data.Entity.Infrastructure.DbQuery1.System.Collections.Generic.IEnumerable&lt;TResult&gt;.GetEnumerator() bij ConsoleApp1.Program.Main(String[] args) in r:\data\ConsoleApp1\ConsoleApp1\Program.cs:regel 18</ExceptionString><InnerException><ExceptionType>System.Data.Entity.Core.ProviderIncompatibleException, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The provider did not return a ProviderManifestToken string.</Message><StackTrace> bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) bij System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)</StackTrace><ExceptionString>System.Data.Entity.Core.ProviderIncompatibleException: The provider did not return a ProviderManifestToken string. ---&gt; System.InvalidOperationException: Could not retrieve storage version. ---&gt; FirebirdSql.Data.FirebirdClient.FbException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld. Parameternaam: s ---&gt; System.ArgumentNullException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld. Parameternaam: s bij System.Text.Encoding.GetBytes(String s) bij FirebirdSql.Data.Services.FbService.BuildSpb() bij FirebirdSql.Data.Services.FbService.Open() --- Einde van intern uitzonderingsstackpad --- bij FirebirdSql.Data.Services.FbService.Open() bij FirebirdSql.Data.Services.FbService.QueryService(Byte[] items, ServiceParameterBufferBase spb) bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb, Action
2 queryResponseAction)
bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb)
bij FirebirdSql.Data.Services.FbServerProperties.GetInfo(Int32 item)
bij FirebirdSql.Data.Services.FbServerProperties.GetString(Int32 item)
bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)
--- Einde van intern uitzonderingsstackpad ---
bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)
bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
--- Einde van intern uitzonderingsstackpad ---
bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
bij System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Could not retrieve storage version. bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)
bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)System.InvalidOperationException: Could not retrieve storage version. ---> FirebirdSql.Data.FirebirdClient.FbException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld.
Parameternaam: s ---> System.ArgumentNullException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld.
Parameternaam: s
bij System.Text.Encoding.GetBytes(String s)
bij FirebirdSql.Data.Services.FbService.BuildSpb()
bij FirebirdSql.Data.Services.FbService.Open()
--- Einde van intern uitzonderingsstackpad ---
bij FirebirdSql.Data.Services.FbService.Open()
bij FirebirdSql.Data.Services.FbService.QueryService(Byte[] items, ServiceParameterBufferBase spb)
bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb, Action2 queryResponseAction) bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb) bij FirebirdSql.Data.Services.FbServerProperties.GetInfo(Int32 item) bij FirebirdSql.Data.Services.FbServerProperties.GetString(Int32 item) bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection) --- Einde van intern uitzonderingsstackpad --- bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection) bij System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)</ExceptionString><InnerException><ExceptionType>FirebirdSql.Data.FirebirdClient.FbException, FirebirdSql.Data.FirebirdClient, Version=8.5.1.1, Culture=neutral, PublicKeyToken=3750abcc3150b00c</ExceptionType><Message>Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld. Parameternaam: s</Message><StackTrace> bij FirebirdSql.Data.Services.FbService.Open() bij FirebirdSql.Data.Services.FbService.QueryService(Byte[] items, ServiceParameterBufferBase spb) bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb, Action
2 queryResponseAction)
bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb)
bij FirebirdSql.Data.Services.FbServerProperties.GetInfo(Int32 item)
bij FirebirdSql.Data.Services.FbServerProperties.GetString(Int32 item)
bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld.
Parameternaam: s ---> System.ArgumentNullException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld.
Parameternaam: s
bij System.Text.Encoding.GetBytes(String s)
bij FirebirdSql.Data.Services.FbService.BuildSpb()
bij FirebirdSql.Data.Services.FbService.Open()
bij FirebirdSql.Data.Services.FbService.Open()
bij FirebirdSql.Data.Services.FbService.QueryService(Byte[] items, ServiceParameterBufferBase spb)
bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb, Action`2 queryResponseAction)
bij FirebirdSql.Data.Services.FbService.Query(Byte[] items, ServiceParameterBufferBase spb)
bij FirebirdSql.Data.Services.FbServerProperties.GetInfo(Int32 item)
bij FirebirdSql.Data.Services.FbServerProperties.GetString(Int32 item)
bij EntityFramework.Firebird.FbProviderServices.GetDbProviderManifestToken(DbConnection connection)System.ArgumentNullException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld.
Parameternaam: s bij System.Text.Encoding.GetBytes(String s)
bij FirebirdSql.Data.Services.FbService.BuildSpb()
bij FirebirdSql.Data.Services.FbService.Open()System.ArgumentNullException: Tekenreeksverwijzing is niet voor een exemplaar van een String ingesteld.
Parameternaam: s
bij System.Text.Encoding.GetBytes(String s)
bij FirebirdSql.Data.Services.FbService.BuildSpb()
bij FirebirdSql.Data.Services.FbService.Open()
An unhandled exception of type 'System.Data.Entity.Core.ProviderIncompatibleException' occurred in EntityFramework.dll
An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.
The program '[24768] ConsoleApp1.exe' has exited with code 0 (0x0).