dotConnect for Oracle and EF6 not working on client pc
Posted: Wed 06 Jan 2016 12:57
Hi all,
I'm using Devart.Data.Oracle, Version=8.4.293.0 together with EF6.1.1 in a winforms application and added the recommended sections
and
This works fine on my development machine. However, if I deploy the solution using ClickOnce I get a runtime error the moment I touch the provider for the first time.
The exception is:
The file or assembly "Devart.Data.Oracle, Version=8.4.293.0 ..." or a reference could not be found. The located assembly’s manifest definition does not match the assembly reference .
All references are copied locally and specific version is set to false.
Any ideas how to resolve this problem?
Regards,
Chris
I'm using Devart.Data.Oracle, Version=8.4.293.0 together with EF6.1.1 in a winforms application and added the recommended sections
Code: Select all
<providers>
<!--provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /-->
<provider invariantName="Devart.Data.Oracle" type="Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=8.4.293.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</providers>
Code: Select all
<system.data>
<DbProviderFactories>
<remove invariant="Devart.Data.Oracle" />
<add name="dotConnect for Oracle" invariant="Devart.Data.Oracle" description="Devart dotConnect for Oracle"
type="Devart.Data.Oracle.OracleProviderFactory, Devart.Data.Oracle, Version=8.4.293.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</DbProviderFactories>
</system.data>
Code: Select all
Shared Sub Main()
Try
Dim config As OracleEntityProviderConfig = Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.Instance
config.DmlOptions.InsertNullBehaviour = InsertNullBehaviour.InsertDefaultOrNull
Application.Run(New frmMain)
Catch ex As Exception
ExtendedExceptionDialog.DisplayException(ex)
End Try
End Sub
The file or assembly "Devart.Data.Oracle, Version=8.4.293.0 ..." or a reference could not be found. The located assembly’s manifest definition does not match the assembly reference .
All references are copied locally and specific version is set to false.
Any ideas how to resolve this problem?
Regards,
Chris