License Information... is throwing ArgumentOutOfRangeException

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Boosa
Posts: 11
Joined: Thu 25 Mar 2010 02:07

License Information... is throwing ArgumentOutOfRangeException

Post by Boosa » Sun 06 Sep 2020 23:13

Hi Team,

I was wondering why The OracleConnection.Open() command threw an ArgumentOutOfRangeException and noticed later that this seems to be related with licensing.
Because trying to open the "License information... screen" from the Devart menu in Visual Studio 2019 the same error is thrown.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex


Uninstalling and reinstalling dotConnect for Oracle led to the same issue.

I tried two other solutions where one solution has the same error and the other has NO issues..
All solutions had no issues before. Don't know what caused the issue. I had a Laptop reinstall, VS reinstall, dotConnect reinstall...

What can I do now? We are using the licensed Version 9.12.1064.0
Hope you can help quickly :)
Regards...Michael

StackTrace:
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
Source=mscorlib
StackTrace:
at System.String.IndexOf(Char value, Int32 startIndex, Int32 count)
at System.String.IndexOf(Char value, Int32 startIndex)
at Devart.Common.CRLicenseProvider.a(Stream A_0, String A_1, String A_2, String& A_3, String& A_4)
at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, String& A_2, String& A_3, String& A_4)
at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, String& A_2, Boolean& A_3, String& A_4, String& A_5)
at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, Boolean A_2)
at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3)
at Devart.Data.Oracle.OracleConnection.Open()

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

Re: License Information... is throwing ArgumentOutOfRangeException

Post by Shalex » Mon 07 Sep 2020 10:17

We cannot reproduce the problem at the moment.

If Target framework is set to .NET Core in properties of your project, you should use Devart.* .NET Standard assemblies downloaded from NuGet via Nuget Package Manager: https://www.nuget.org/packages/devart.data.oracle. With .NET Standard (.NET Core) Projects, the licensing approach is different (Tools > Oracle > License Information dialog is not used): https://www.devart.com/dotconnect/oracl ... ndard.html.

If this doesn't help, please do:
1) tell us the exact version of your Visual Studio via Help > About
2) send us a small test project for reproducing the error and specify the steps we should follow

cnieling
Posts: 2
Joined: Wed 18 Nov 2009 14:06

Re: License Information... is throwing ArgumentOutOfRangeException

Post by cnieling » Wed 12 May 2021 10:58

Did this problem get solved? I have excatly the same error at the moment on a framework 4.8 solution, with Visual Studio 2019 (Version 16.9.5). This has been working couple of weeks ago, suddenly stopped working.

Desktop application in the same solution is still working, the error only occurs on a web application. Also Tools -> MySQL -> License information returns the same error.

Stack trace:
[ArgumentOutOfRangeException: De index valt buiten het bereik. Deze mag niet negatief zijn en moet kleiner zijn dan de grootte van de verzameling.
Parameternaam: startIndex]
System.String.IndexOf(Char value, Int32 startIndex, Int32 count) +0
System.String.IndexOf(Char value, Int32 startIndex) +27
Devart.Common.CRLicenseProvider.a(Stream A_0, String A_1, String A_2, String& A_3, String& A_4) +669
Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, String& A_2, String& A_3, String& A_4) +2991
Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, String& A_2, Boolean& A_3, String& A_4, String& A_5) +33
Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, Boolean A_2) +174
Devart.Data.MySql.MySqlProviderFactory.CreateConnection() +64
Devart.Data.MySql.Linq.Provider.MySqlDataProvider.CreateConnection() +27
Devart.Data.Linq.DataProvider.Initialize(Object connection) +64
Devart.Data.MySql.Linq.Provider.MySqlDataProvider.Initialize(Object connection) +5
Devart.Data.Linq.DataProvider.a(IDataServices A_0, Object A_1) +28
Devart.Data.Linq.DataContext.a(Object A_0, MappingSource A_1, Type A_2, String A_3, Boolean A_4) +547
Devart.Data.Linq.DataContext..ctor(String connectionString, MappingSource mapping) +50

Already uninstalled en reinstalled Devart, and tried to supply License Key in the connection string, no solution so far.

Hope you can help soon....

Kind Regards,
Christian


UPDATE: I was not on the latest version of Devart (8.18.1739), updating to the latest version (8.19.1866) seemed to fix it.

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

Re: License Information... is throwing ArgumentOutOfRangeException

Post by Shalex » Thu 13 May 2021 11:01

cnieling wrote: Wed 12 May 2021 10:58 UPDATE: I was not on the latest version of Devart (8.18.1739), updating to the latest version (8.19.1866) seemed to fix it.
Thank you for letting us know. If the problem comes back, please contact us.

cnieling
Posts: 2
Joined: Wed 18 Nov 2009 14:06

Re: License Information... is throwing ArgumentOutOfRangeException

Post by cnieling » Fri 04 Jun 2021 06:56

Just published web application to a new machine, and again get this error even with the latest version.

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

Re: License Information... is throwing ArgumentOutOfRangeException

Post by Shalex » Mon 07 Jun 2021 12:25

cnieling wrote: Fri 04 Jun 2021 06:56 Just published web application to a new machine, and again get this error even with the latest version.
1. The same web application with the same provider version (8.19.1866) works in the development environment but fails in production, doesn't it?
2. Please send us a test project so that we can reproduce the error in our environment.

Post Reply