dotConnect for Oracle WPF app license error

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
John Liu
Posts: 61
Joined: Wed 14 Nov 2012 20:58

dotConnect for Oracle WPF app license error

Post by John Liu » Wed 03 Jul 2013 21:45

I've been working with EF6 beta 1 with dotConnect for oracle version 7.7.257.6 for a while. Everything works fine within the PM> environments inside visual studio and another unit tests project (also a class library project). I recently created a WPF application using the identical app.config with the other two projects. It gives me the following errors:

An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.

Assembly that contains embedded dotConnect for Oracle license cannot be used with this application: Cityworks.DatabaseManger.
Please correct license information

How do I fix the license issue here?
thanks
JL


ystem.Windows.Markup.XamlParseException was unhandled
HResult=-2146233087
Message='The invocation of the constructor on type 'Cityworks.DatabaseManger.DbMgrView' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'.
Source=PresentationFramework
LineNumber=3
LinePosition=9
StackTrace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Cityworks.DatabaseManger.App.Main() in c:\CWSource\Cityworks Server\Cityworks.DatabaseManger\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Data.Entity.Core.ProviderIncompatibleException
HResult=-2146233087
Message=An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.
Source=EntityFramework
StackTrace:
at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)
at System.Data.Entity.Infrastructure.DefaultManifestTokenService.GetProviderManifestToken(DbConnection connection)
at System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest)
at System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)
at System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)
at System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input)
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.LazyInternalContext.get_CodeFirstModel()
at System.Data.Entity.Infrastructure.EdmxWriter.WriteEdmx(DbContext context, XmlWriter writer)
at System.Data.Entity.Utilities.DbContextExtensions.<>c__DisplayClass5.<GetModel>b__4(XmlWriter w)
at System.Data.Entity.Utilities.DbContextExtensions.GetModel(Action`1 writeXml)
at System.Data.Entity.Utilities.DbContextExtensions.GetModel(DbContext context)
at System.Data.Entity.Migrations.DbMigrator..ctor(DbMigrationsConfiguration configuration, DbContext usersContext)
at System.Data.Entity.Migrations.DbMigrator..ctor(DbMigrationsConfiguration configuration)
at Cityworks.DatabaseManger.DbMgrData.GetDatabaseStatus(DbMgrModel model) in c:\CWSource\Cityworks Server\Cityworks.DatabaseManger\Data\DbMgrData.cs:line 28
at Cityworks.DatabaseManger.DbMgrPresenter.SearchDatabaseStatus(DbMgrModel model) in c:\CWSource\Cityworks Server\Cityworks.DatabaseManger\Presenters\DbMgrPresenter.cs:line 100
at Cityworks.DatabaseManger.DbMgrPresenter.OnViewInitialized() in c:\CWSource\Cityworks Server\Cityworks.DatabaseManger\Presenters\DbMgrPresenter.cs:line 23
at Cityworks.DatabaseManger.DbMgrView..ctor() in c:\CWSource\Cityworks Server\Cityworks.DatabaseManger\Views\DbMgrView.xaml.cs:line 30
InnerException: System.Data.Entity.Core.ProviderIncompatibleException
HResult=-2146233087
Message=The provider did not return a ProviderManifestToken string.
Source=EntityFramework
StackTrace:
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)
InnerException: Devart.Data.Oracle.OracleException
HResult=-2147467259
Message=Assembly that contains embedded dotConnect for Oracle license cannot be used with this application: Cityworks.DatabaseManger.
Please correct license information.
Source=Devart.Data.Oracle
ErrorCode=-2147467259
Code=-1
Offset=0
StackTrace:
at Devart.Data.Oracle.OracleConnection.Open()
at Devart.Common.Entity.bb.a(DbConnection A_0)
at Devart.Data.Oracle.Entity.ai.a(OracleConnection A_0)
at Devart.Data.Oracle.Entity.ai..ctor(OracleConnection A_0)
at Devart.Data.Oracle.Entity.OracleEntityProviderServices.GetDbProviderManifestToken(DbConnection connection)
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
InnerException:

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: dotConnect for Oracle WPF app license error

Post by Shalex » Thu 04 Jul 2013 07:15

dotConnect for Oracle allows you to create class libraries that can be used with certain executable files. All these executable files should be enumerated in licenses.config: http://www.devart.com/dotconnect/oracle ... g.html#lib.

dotConnect for Oracle includes License Wizard (Visual Studio > Tools > Oracle > License Information) that helps you configure license information.
John Liu wrote:Assembly that contains embedded dotConnect for Oracle license cannot be used with this application: Cityworks.DatabaseManger.
Please correct license information
Please add Cityworks.DatabaseManger.exe to licenses.config in your class library project (manually or using License Wizard) and rebuild the project.

John Liu
Posts: 61
Joined: Wed 14 Nov 2012 20:58

Re: dotConnect for Oracle WPF app license error

Post by John Liu » Fri 05 Jul 2013 17:18

That fixed my issue using Tools->Oracle->License Information...
thanks
JL

Post Reply