ArgumentNullException + CustomNumerator + Web


Hello !

Could you please assist me on this case? I'm getting System.ArgumentNullException when using CustomNumerator with web project. Evything working fine with Win project.

Thank you!

- $exception {"La valeur ne peut pas être null.\r\nNom du paramètre : manager"} System.ArgumentNullException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HResult -2147467261 int
HelpLink null string
+ InnerException null System.Exception
Message "La valeur ne peut pas être null.\r\nNom du paramètre : manager" string
ParamName "manager" string
Source "Xafari.BC.Numerators" string
StackTrace " à Xafari.BC.Numerators.NumeratorBase..ctor(NumeratorManager manager)...

Attached files:


UserDescriptionPosted On

Hello gabossolo!

I apologize for the delayed response.

In order to fix the issue, we must first reproduce the issue in our labs. We cannot reproduce the problem with an example (see Attachments). We do not have ideas why this error can occur on your machine either.

Could you please provide us with the following info?
1. A small demo project, reproducing the problem;
2. Detailed steps to reproduce the problem.

We want to help you and are looking forward to hearing from you.

On behalf of Xafari Client Services Team

Attached files:

Thank you! I've solved the issue by declaring numerators directly in the Model.

public sealed class ShipmentNumerator : CustomNumerator {
public ShipmentNumerator(NumeratorManager manager = null) : base(manager) {
Template = "{0:NumberPrefix}{0:,0000000}";
KeyTemplate = "{0:BranchCode, 0000}";
Step = 1;
StartValue = 1;
AllowDuplicates = false;
Regards, GB

× This ticket is closed.

Write US