Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Posts: 2
Joined: Sat 06 Sep 2014 18:00


Post by krbuck » Wed 27 Jul 2016 18:28

This my current problem. I believe this is new behavior and only happens in debugging in VS 2015.
Any ideas? Thanks.

Devart.Data.Oracle.OracleException was unhandled by user code
Message=Assembly (DocumentsKB) is not licensed to use dotConnect for Oracle.
Please correct license information.
at Devart.Data.Oracle.OracleConnection.Open()
at Devart.Data.Oracle.Linq.Provider.OracleDataProvider.Initialize(Object connection)
at Devart.Data.Linq.DataProvider.a(IDataServices A_0, Object A_1)
at Devart.Data.Linq.DataContext.a(Object A_0, MappingSource A_1, Type A_2)
at Devart.Data.Linq.DataContext..ctor(String connectionString, MappingSource mapping)
at DocumentsKB.Models.DOCUMENTSKBDataContext..ctor() in C:\Users\krbuck\Source\repos\DocumentsKBSearch\DocumentsKBSearch\DocumentsKB\Models\SEARCHDOCUMENTResult.cs:line 42
at DocumentsKB.Infrastructure.Concrete.RebuildSearchIndex..ctor() in C:\Users\krbuck\Source\repos\DocumentsKBSearch\DocumentsKBSearch\DocumentsKB\Infrastructure\Concrete\RebuildSearchIndex.cs:line 13
at DocumentsKB.Controllers.UploadController.Upload(FormCollection formCollection) in C:\Users\krbuck\Source\repos\DocumentsKBSearch\DocumentsKBSearch\DocumentsKB\Controllers\UploadController.cs:line 60
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()

Devart Team
Posts: 2192
Joined: Wed 02 Nov 2011 09:44

Re: License?

Post by Pinturiccio » Thu 28 Jul 2016 15:07

Visual Studio 2015 passes parameters to lc.exe differently than older Visual Studio versions. We have supported Visual Studio 2015 Release Candidate in dotConnect for Oracle 8.4.422. Starting from this version, we have taken these differences into account and correctly process parameters, passed by Visual Studio 2015. For more information, please refer to ... story.html

With Visual Studio 2015, you need to use dotConnect for Oracle 8.4.422 or higher. However, you can use Visual Studio 2015 even with dotConnect for Oracle of a version older than 8.4.422. In this case you have to compile license resources manually.

The license resource can be compiled in the following way:
1) Create a text file named licenses.licx and enter the following text inside the licenses.licx file:
Devart.Data.Oracle.OracleConnection, Devart.Data.Oracle

2) Generate the license resource file using the following command line:
"%Compiler Path%\lc.exe /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.Oracle.dll"

- %Compiler Path% is the path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
- MyApplication.exe is the name of your target executable file. If you want to compile a license resource for a class library project, specify MyApplication.dll instead of MyApplication.exe, where MyApplication.dll is the name of the class library.
- licenses.licx is your licenses.licx file. Place licenses.config file in the same folder as the licenses.licx file for a class library project;
- %Assembly Path% is the Devart.Data.Oracle.dll assembly location.

3) The License compiler will generate the 'MyApplication.exe.licenses' ('MyApplication.dll.licenses' for class library project) resource file;

4) Add this file to your project as an embedded resource.

For more information, please refer to ... ml#compile

Post Reply