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()
License Information... is throwing ArgumentOutOfRangeException
Re: License Information... is throwing ArgumentOutOfRangeException
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
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
Re: License Information... is throwing ArgumentOutOfRangeException
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.
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.
Re: License Information... is throwing ArgumentOutOfRangeException
Just published web application to a new machine, and again get this error even with the latest version.
Re: License Information... is throwing ArgumentOutOfRangeException
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.