Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000239ILNumerics[All Projects] Bugspublic2016-09-27 12:172016-09-27 12:54
Reporterconstructor 
Assigned Toho 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Summary0000239: Cannot create array
Description
I investigate ILNumerics and cannot create simple array (see details below)

test's source:

using ILNumerics;
using NUnit.Framework;

namespace ILNumericsTests
{
    [TestFixture]
    public class ILArraysTests
    {
        [Test]
        public void CreateILArray()
        {
            ILNumericsSample sample = new ILNumericsSample();
            sample.CreateArray();
        }
    }

    public class ILNumericsSample : ILMath
    {
        public void CreateArray()
        {
            ILArray<double> A = rand(10, 20);
            ILArray<double> B = A * 30 + 100;
            ILLogical C = any(multiply(B, B.T));
        }
    }
}


error:

System.TypeInitializationException : The type initializer for 'ILNumerics.ILMath' threw an exception.
  ----> System.ComponentModel.LicenseException : Error retrieving embedded licenses from assembly resources. Assembly: ILNumericsTests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  ----> System.Runtime.Serialization.SerializationException : Attempting to deserialize an empty stream.
   at ILNumerics.ILMath..ctor()
   at ILNumericsTests.ILNumericsSample..ctor()
   at ILNumericsTests.ILArraysTests.CreateILArray() in d:\My\@gh\TechSugar\MathLab\ILNumericsIntro\ILNumericsTests\ILArraysTests.cs:line 12
--LicenseException
   at ILNumerics.Licensing.ILLicenseManager.GetLicensesFromAssembly(Assembly assembly, IEnumerable`1& licenses)
   at ILNumerics.Licensing.ILLicenseManager.VerifyAssembly(Assembly assembly)
   at ILNumerics.Licensing.ILLicenseManager.VerifyAssemblies()
   at ILNumerics.Licensing.ILLicenseManager.get_AppDomainIsVerified()
   at ILNumerics.Licensing.ILLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
   at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
   at System.ComponentModel.LicenseManager.Validate(Type type)
   at ILNumerics.ILMath..cctor()
--SerializationException
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at ILNumerics.Licensing.ILLicenseManager.GetLicensesFromAssembly(Assembly assembly, IEnumerable`1& licenses)

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000248)
ho (administrator)
2016-09-27 12:30

we do not use Nunit here, sadly. Please add an example without it. A plain ConsoleApplication will do. Thanks
(0000251)
constructor (reporter)
2016-09-27 12:53

same error in console application

class Program: ILMath
{
   static void Main(string[] args)
   {
      ILArraySample sample = new ILArraySample();


sample can be found in solution https://github.com/constructor-igor/TechSugar/tree/master/MathLab/ILNumericsIntro [^]
(0000252)
constructor (reporter)
2016-09-27 12:54

pay attention, we use nunit and I am not sure if will start to use tools not supported nunit

- Issue History
Date Modified Username Field Change
2016-09-27 12:17 constructor New Issue
2016-09-27 12:30 ho Note Added: 0000248
2016-09-27 12:30 ho Assigned To => ho
2016-09-27 12:30 ho Status new => feedback
2016-09-27 12:53 constructor Note Added: 0000251
2016-09-27 12:53 constructor Status feedback => assigned
2016-09-27 12:54 constructor Note Added: 0000252


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker