I am trying to register the license key by the Application_Start method. When I execute Licensing.RegisterLicense("{LicenseKey}"), the method LicenseUtils.ActivatedLicenseFeatures() returns the value "Text". But when I execute new AppHost().Init(), it gives me the following error:
Application Exception
ServiceStack.LicenseException
The free-quota limit on '10 ServiceStack Operations' has been reached. Please see https://servicestack.net to upgrade to a commercial license or visit https://github.com/ServiceStackV3/ServiceStackV3 to revert back to the free ServiceStack v3.
Description: HTTP 500. Error processing request.
Details: Non-web exception. Exception origin (name of application or object): ServiceStack.Text.
Exception stack trace:
at ServiceStack.LicenseUtils.ApprovedUsage (LicenseFeature licenseFeature, LicenseFeature requestedFeature, Int32 allowedUsage, Int32 actualUsage, System.String message) [0x00026] in <filename unknown>:0
at ServiceStack.LicenseUtils.AssertValidUsage (LicenseFeature feature, QuotaType quotaType, Int32 count) [0x00118] in <filename unknown>:0
at ServiceStack.Host.ServiceMetadata.Add (System.Type serviceType, System.Type requestType, System.Type responseType) [0x002c9] in <filename unknown>:0
at ServiceStack.Host.ServiceController.RegisterService (ITypeFactory serviceFactoryFn, System.Type serviceType) [0x00137] in <filename unknown>:0
at ServiceStack.Host.ServiceController.Register (ITypeFactory serviceFactoryFn) [0x0001a] in <filename unknown>:0
at ServiceStack.Host.ServiceController.Init () [0x00016] in <filename unknown>:0
at ServiceStack.ServiceStackHost.Init () [0x00073] in <filename unknown>:0
at API.Global.Application_Start (System.Object sender, System.EventArgs e) [0x00016] in API/Global.asax.cs:163
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /private/tmp/source-mono-mac-4.2.0-branch-c6sr1/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:295
Version Information: 4.2.2 (explicit/996df3c Wed Jan 20 00:19:48 EST 2016); ASP.NET Version: 4.0.30319.17020
Powered by Mono
I already tried to update the ServiceStack package, with no success.
This is because you're using a ServiceStack.Text License which only covers usage for the ServiceStack.Text NuGet Package with packages from the full ServiceStack framework.
Related
We have an error using some plugin on unity.
It worked for a few years, suddenly at 1.6.18 stopped working.
We are using webapi through azure app service.
The error is:
{System.Net.WebException: Error getting response stream (Write: BeginWrite failure): SendFailure ---> System.IO.IOException: BeginWrite failure
at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback callback, System.Object state) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.BeginSendRecord (ContentType contentType, System.Byte[] recordData, System.AsyncCallback callback, System.Object state) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (ContentType contentType, System.Byte[] recordData) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (Mono.Security.Protocol.Tls.Alert alert) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (AlertDescription description) [0x00000] in <filename unknown>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
Authorization Error: 0
UnityEngine.Debug:Log(Object)
Assets.Scripts.Services.LoginService:EmailAuthenticationCallback(IRestResponse`1) (at Assets/Scripts/Services/LoginService.cs:41)
Unity3dAzure.MobileServices.<Invoke>c__AnonStorey0`1:<>m__0(IRestResponse) (at Assets/MobileServices-master/client/MobileServiceClient.cs:104)
RestSharp.<ExecuteAsync>c__AnonStorey0:<>m__0(IRestResponse, RestRequestAsyncHandle) (at Assets/Source/RestClientExtensions.cs:18)
RestSharp.RestClient:ProcessResponse(IRestRequest, HttpResponse, RestRequestAsyncHandle, Action`2) (at Assets/Source/RestClient.Async.cs:110)
RestSharp.<ExecuteAsync>c__AnonStorey0:<>m__0(HttpResponse) (at Assets/Source/RestClient.Async.cs:83)
RestSharp.Http:ExecuteCallback(HttpResponse, Action`1) (at Assets/Source/Http.Async.cs:328)
RestSharp.Http:RequestStreamCallback(IAsyncResult, Action`1) (at Assets/Source/Http.Async.cs:224)
RestSharp.<WriteRequestBodyAsync>c__AnonStorey1:<>m__0(IAsyncResult) (at Assets/Source/Http.Async.cs:153)
System.Net.WebConnection:InitConnection(Object)
Debug.Log("Status: " + restResponse.StatusCode + " Uri:" + restResponse.ResponseUri);
if (restResponse.Data != null && restResponse.Data.User != null && restResponse.Data.IsValid)
{
new CurrentAccount().Set(restResponse.Data);
}
if (restResponse.StatusCode == HttpStatusCode.OK)
{
_callback.Invoke(restResponse.Data);
}
else
{
Debug.Log("Authorization Error: " + restResponse.StatusCode);
_callback.Invoke(new LoginResponseDto());
}
}
}
}
Using Mono on Linux, the sample Microsoft.AspNet.SignalR.Mono found at https://github.com/SignalR/SignalR seems to work using the stable release of mono but not with the latest development branch (3.99). Anyone encounter this? I get the following exception:
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.InvalidProgramException: Invalid IL code
in (wrapper delegate-invoke)
<Module>:invoke_callvirt_CancellationTokenRegistration_CancellationToken&_Action`1<object>_object
(System.Threading.CancellationToken&,System.Action`1<object>,object): IL_004f:
castclass 0x00000007
at
Microsoft.AspNet.SignalR.Infrastructure.CancellationTokenExtensions.SafeRegister
(CancellationToken cancellationToken, System.Action`1 callback, System.Object
state) [0x00000] in <filename unknown>:0
at
Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeResolverDispose
(IDependencyResolver resolver, CancellationToken hostShutdownToken) [0x00000]
in <filename unknown>:0
at
Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeHost
(IDependencyResolver resolver, System.String instanceName, CancellationToken
hostShutdownToken) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.UseSignalRMiddleware[PersistentConnectionMiddleware]
(IAppBuilder builder, System.Object[] args) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.RunSignalR (IAppBuilder builder, System.Type
connectionType, Microsoft.AspNet.SignalR.ConnectionConfiguration configuration)
[0x00000] in <filename unknown>:0
at Owin.OwinExtensions.RunSignalR[RawConnection] (IAppBuilder builder,
Microsoft.AspNet.SignalR.ConnectionConfiguration configuration) [0x00000] in
<filename unknown>:0
at Owin.OwinExtensions.RunSignalR[RawConnection] (IAppBuilder builder)
[0x00000] in <filename unknown>:0
at Microsoft.AspNet.SelfHost.Samples.Startup.<Configuration>b__0 (IAppBuilder
map) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, PathString pathMatch,
System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, System.String pathMatch,
System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SelfHost.Samples.Startup.Configuration (IAppBuilder app)
[0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] in <filename unknown>:0
at Owin.Loader.DefaultLoader+<>c__DisplayClass12.<MakeDelegate>b__b
(IAppBuilder builder) [0x00000] in <filename unknown>:0
at Owin.Loader.DefaultLoader+<>c__DisplayClass1.<LoadImplementation>b__0
(IAppBuilder builder) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Engine.HostingEngine.ResolveApp
(Microsoft.Owin.Hosting.Engine.StartContext context) [0x00000] in <filename
unknown>:0
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start
(Microsoft.Owin.Hosting.Engine.StartContext context) [0x00000] in <filename
unknown>:0
at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start
(Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Starter.HostingStarter.Start
(Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.StartImplementation (IServiceProvider
services, Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename
unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions
options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start[Startup]
(Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start[Startup] (System.String url) [0x00000]
in <filename unknown>:0
at Microsoft.AspNet.SelfHost.Samples.Program.Main (System.String[] args)
[0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.InvalidProgramException: Invalid IL code in (wrapper delegate-invoke)
<Module>:invoke_callvirt_CancellationTokenRegistration_CancellationToken&_Action`1<object>_object
(System.Threading.CancellationToken&,System.Action`1<object>,object): IL_004f:
castclass 0x00000007
This looks like a bug in later versions of Mono. I reported this on Friday: http://bugzilla.xamarin.com/show_bug.cgi?id=29665
That issue is already reported on SignalIR repo. Try pulling the latest version of the dev branch, ASP.NET team have commented out the code throwing that exception as a workaround for now.
What I eventually went with was to return the fallback register in ResolveRegisterDelegate() if IsRunningMono is true:
if (MonoUtility.IsRunningMono)
return fallback;
try
{
methodInfo = typeof(CancellationToken).GetMethod("InternalRegisterWithoutEC",
BindingFlags.NonPublic | BindingFlags.Instance,
binder: null,
types: new[] { typeof(Action<object>), typeof(object) },
modifiers: null);
}
catch
{
// Swallow this exception. Being extra paranoid, we don't want anything to break in case this dirty
// reflection hack fails for any reason
}
I noticed that this was happening in the earlier stable release of mono because the GetMethod("InternalRegisterWithoutEC") was returning null and did NOT return null with the latest dev branch of mono.
I'm having a problem with using the Monodroid PCL libraries. All calls are working except this one:
client.PostFileWithRequest<DtoResponse>("createimage", ms, fileName, new Dto{ Id = id});
The error is as follows:
Object reference not set to an instance of an object at ServiceStack.Pcl.StringEqualityComparer.GetHashCode (System.String obj) [0x00000] in <filename unknown>:0
at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.NameObjectCollectionBase.FindFirstMatchedItem (System.String name) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.NameObjectCollectionBase.BaseGet (System.String name) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.NameValueCollection.Add (System.String name, System.String value) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.HttpUtility.ParseQueryString (System.String query, System.Text.Encoding encoding, ServiceStack.Pcl.NameValueCollection result) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.HttpUtility.ParseQueryString (System.String query, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
at ServiceStack.Pcl.HttpUtility.ParseQueryString (System.String query) [0x00000] in <filename unknown>:0
at ServiceStack.AndroidPclExportClient.ParseQueryString (System.String query) [0x00000] in <filename unknown>:0
at ServiceStack.ServiceClientBase+<>c__DisplayClass1b`1[Lodestone.Pcl.Infrastucture.Responses.ChildImage.ChildImageResponse].<PostFileWithRequest>b__18 () [0x00000] in <filename unknown>:0
at ServiceStack.ServiceClientBase.PostFileWithRequest[ChildImageResponse] (System.String relativeOrAbsoluteUrl, System.IO.Stream fileToUpload, System.String fileName, System.Object request, System.String fieldName) [0x00000] in <filename unknown>:0 "
We didn't have this problem prior to this. We were using the 3.9.71 monodroid compiled dlls.They were not PCL. This has only stated with the v4 PCL versions.Has anyone encountered this before and how did you solve it?
A fix for this issue has been deployed to MyGet:
https://github.com/ServiceStack/ServiceStack/wiki/MyGet
Available in the next v4.0.16+ release on NuGet.
I am having issues importing my wsdl into mono develop.
This wsdl and xsd implementation works flawlessly under Visual Studio, but cannot be imported into mono develop.
I have also checked it against several wsdl verification sites and they all pass.
The process I use is to create a project and then “add web reference”. I then select .net 2.0 as the type of wsdl. I then paste in the link to the wsdl. And then hit “jump to”.
Then I get the error listed below. This is preventing me from finishing my evaluation of the product, and any help you can provide would be beneficial.
The wsdl files are located here:
ftp.echelon.com/fae/na/outgoing/GDahl/wsdlissue/v4.0.zip
wsdl file in question is ilon100.wsdl.
**System.Xml.Schema.XmlSchemaException: XmlSchema error: Target namespace is required, to include a schema which has its own target namespace Related schema item SourceUri:** http://216.254.101.36/WSDL/v4.0/iLON100.wsdl, Line 31, Position 4.
at System.Xml.Schema.ValidationHandler.RaiseValidationEvent (System.Xml.Schema.ValidationEventHandler handle, System.Exception innerException, System.String message, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender, System.String sourceUri, XmlSeverityType severity) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler handle, System.String message, System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler handle, System.String message) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.ProcessExternal (System.Xml.Schema.ValidationEventHandler handler, System.Collections.Hashtable handledUris, System.Xml.XmlResolver resolver, System.Xml.Schema.XmlSchemaExternal ext, System.Xml.Schema.XmlSchemaSet col) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.AddExternalComponentsTo (System.Xml.Schema.XmlSchema s, System.Xml.Schema.XmlSchemaObjectCollection items, System.Xml.Schema.ValidationEventHandler handler, System.Collections.Hashtable handledUris, System.Xml.XmlResolver resolver, System.Xml.Schema.XmlSchemaSet col) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.ProcessExternal (System.Xml.Schema.ValidationEventHandler handler, System.Collections.Hashtable handledUris, System.Xml.XmlResolver resolver, System.Xml.Schema.XmlSchemaExternal ext, System.Xml.Schema.XmlSchemaSet col) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.DoCompile (System.Xml.Schema.ValidationEventHandler handler, System.Collections.Hashtable handledUris, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.CompileSubset (System.Xml.Schema.ValidationEventHandler handler, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver, System.Collections.Hashtable handledUris) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchemaSet.Compile () [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.Compile (System.Xml.Schema.ValidationEventHandler handler, System.Xml.XmlResolver resolver) [0x00000] in <filename unknown>:0
at System.Xml.Schema.XmlSchema.Compile (System.Xml.Schema.ValidationEventHandler handler) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemas.Find (System.Xml.Schema.XmlSchema schema, System.Xml.XmlQualifiedName name, System.Type type) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemas.Find (System.Xml.XmlQualifiedName name, System.Type type) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.ImportType (System.Xml.XmlQualifiedName name, System.Xml.XmlQualifiedName root, Boolean throwOnError) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.GetTypeData (System.Xml.XmlQualifiedName typeQName, System.Xml.XmlQualifiedName root, Boolean isNullable) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.GetElementTypeData (System.Xml.XmlQualifiedName typeQName, System.Xml.Schema.XmlSchemaElement elem, System.Xml.XmlQualifiedName root, System.Xml.Serialization.XmlTypeMapping& map) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.ImportSequenceContent (System.Xml.XmlQualifiedName typeQName, System.Xml.Serialization.ClassMap cmap, System.Xml.Schema.XmlSchemaObjectCollection items, System.Xml.Serialization.CodeIdentifiers classIds, Boolean multiValue, System.Boolean& isMixed) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.ImportParticleContent (System.Xml.XmlQualifiedName typeQName, System.Xml.Serialization.ClassMap cmap, System.Xml.Schema.XmlSchemaParticle particle, System.Xml.Serialization.CodeIdentifiers classIds, Boolean multiValue, System.Boolean& isMixed) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.ImportParticleComplexContent (System.Xml.XmlQualifiedName typeQName, System.Xml.Serialization.ClassMap cmap, System.Xml.Schema.XmlSchemaParticle particle, System.Xml.Serialization.CodeIdentifiers classIds, Boolean isMixed) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.BuildClassMap (System.Xml.Serialization.XmlTypeMapping map, System.Xml.XmlQualifiedName typeQName, System.Xml.Schema.XmlSchemaComplexType stype) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.BuildPendingMaps () [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.ImportMembersMappingComposite (System.Xml.Schema.XmlSchemaComplexType stype, System.Xml.XmlQualifiedName refer) [0x00000] in <filename unknown>:0
at System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping (System.Xml.XmlQualifiedName name) [0x00000] in <filename unknown>:0
at System.Web.Services.Description.SoapProtocolImporter.ImportMembersMapping (System.Web.Services.Description.Message msg, System.Web.Services.Description.SoapBodyBinding sbb, SoapBindingStyle style, Boolean output, Boolean wrapped) [0x00000] in <filename unknown>:0
at System.Web.Services.Description.SoapProtocolImporter.GenerateMethod () [0x00000] in <filename unknown>:0
at System.Web.Services.Description.ProtocolImporter.ImportPortBinding (Boolean multipleBindings) [0x00000] in <filename unknown>:0
at System.Web.Services.Description.ProtocolImporter.Import (System.Web.Services.Description.ServiceDescriptionImporter descriptionImporter, System.CodeDom.CodeNamespace codeNamespace, System.Collections.ArrayList importInfo) [0x00000] in <filename unknown>:0
at System.Web.Services.Description.ServiceDescriptionImporter.Import (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit) [0x00000] in <filename unknown>:0
at MonoDevelop.WebReferences.Library.GenerateWsdlXml (System.Text.StringBuilder text, System.Web.Services.Discovery.DiscoveryClientProtocol protocol) [0x00000] in <filename unknown>:0
at MonoDevelop.WebReferences.WS.WebServiceDiscoveryResultWS.GetDescriptionMarkup () [0x00000] in <filename unknown>:0
at MonoDevelop.WebReferences.Dialogs.WebReferenceDialog.UpdateService (MonoDevelop.WebReferences.WebServiceDiscoveryResult service, System.String url) [0x00000] in <filename unknown>:0
at MonoDevelop.WebReferences.Dialogs.WebReferenceDialog+<QueryService>c__AnonStorey5.<>m__0 (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0
at Gtk.Application+InvokeCB.Invoke () [0x00000] in <filename unknown>:0
at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
I've also had occasional issues generating proxy classes based on a valid WSDL in MonoDevelop. Firstly, I'm sure the MonoDevelop team would appreciate a bug report (see the "Reporting Bugs" section on this page: http://monodevelop.com/Developers).
In the meantime, maybe you can generate your proxy classes in Visual Studio and then import them into your MonoDevelop project.
Hope this helps!
we are working in a project involving the use of EMGU and in particoular the SVM functions of OpenCV and we have a problem using Mono on a Ubuntu platform and we don't have this problem on windows. The problem appears when we call the Emgu.CV.ML.SVM.Train method. All the parameters are correct and we canno't debug the wrapped code...
We have tried to increase the Shared Memory and other tricks but it doesn't work.
Do you have any idea?
Thank you
Angelo
Unhandled Exception: Emgu.CV.CvException: OpenCV: requested size is negative or too big
at Emgu.CV.CvInvoke.CvErrorHandler (Int32 status, System.String funcName, System.String errMsg, System.String fileName, Int32 line, IntPtr userData) [0x00000]
at (wrapper native-to-managed) Emgu.CV.CvInvoke:CvErrorHandler (int,intptr,intptr,intptr,int,intptr)
at (wrapper managed-to-native) Emgu.CV.ML.MlInvoke:CvSVMTrain (intptr,intptr,intptr,intptr,intptr,Emgu.CV.ML.Structure.MCvSVMParams)
at Emgu.CV.ML.SVM.Train (Emgu.CV.Matrix`1 trainData, Emgu.CV.Matrix`1 responses, Emgu.CV.Matrix`1 varIdx, Emgu.CV.Matrix`1 sampleIdx, Emgu.CV.ML.SVMParams parameters) [0x00000]
at Segmentation.ImageFeatures.LeafHog.TrainModel (IDictionary`2 dicInOutImage) [0x00000]
at Segmentation.ImageSegmentators.Composite.TrainModel (IDictionary`2 dicInOutImage) [0x00000]
at Segmentation.ImageSegmentators.CompositionMlpRprop.TrainModel (IDictionary`2 dicInOutImage) [0x00000]
at Segmentation.GeneticConfig.ChromoCreator.GetASegmentation (IConfigChromosome configChromosome, IDictionary`2 dicInOutImageTrain) [0x00000]
at Segmentation.GeneticConfig.ConfigChromoProvider.AddChromosomeIfNew (IConfigChromosome chromo) [0x00000]
at Segmentation.GeneticConfig.ConfigChromosome.Generate () [0x00000]
at Segmentation.GeneticConfig.ConfigChromosome..ctor (Int32 chromoLength, IConfigChromoProvider cProvider) [0x00000]
at Segmentation.GeneticConfig.ConfigChromosome.CreateNew () [0x00000]
at AForge.Genetic.Population..ctor (Int32 size, IChromosome ancestor, IFitnessFunction fitnessFunction, ISelectionMethod selectionMethod) [0x00000]
at SegmentationCLI.Program.Main (System.String[] args) [0x00000]