Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Payparameter in the AX Dynamics

Posted on by 5

Hello Dears,

please help me that I am new to the AX dynamics application we have an ASP.NET application and it is connected to the AX dynamics application every 90 days ASP.NET application is throwing Licence is Expired, please contact with Developer.

I check in the login.aspx.cs file and i found the following code.

private Boolean AuthenticateLicenes()

{

//Befor Login

BLLAXParamters bllpara = new BLLAXParamters();

PAYPARAMETER para = new PAYPARAMETER();

para = bllpara.GetParameter();

CommonMethods.SetCacheData("SettingPAYPARAMETER", para);

try

{

string install = CommonMethods.Decrypt(para.INSTALLESSDATE, "root@123");

if (install == null)

{

throw new Exception("");

}

string dt = install.Substring(0, 10);

string period = install.Substring(10, install.Length - 10);

DateTime result = DateTime.ParseExact(dt, "dd/MM/yyyy", CultureInfo.InvariantCulture);

TimeSpan difference = result - DateTime.Now;

int diffDay = Convert.ToInt16(Math.Abs(Math.Floor(Math.Abs(difference.TotalDays))));

if (diffDay > Convert.ToInt16(period))

{

throw new Exception("");

}

return true;

}

catch (Exception ex)

{

MessageBox messageBox = new MessageBox();

messageBox.MessageTitle = "Error";

messageBox.MessageText = "The License Is Expired , Please Connect With Developers";

Literal1.Text = messageBox.Show(this);

using (AXDataContext dc = new AXDataContext(ESSDB.connectionstringAX))

{

if (para != null)

{

para.INSTALLESSDATE = null;

dc.SubmitChanges();

}

}

return false;

}

return false;

}

Please help me how to resolve the issue. Thanks in Advance.

  • Suggested answer
    Deepak Agarwal Profile Picture
    Deepak Agarwal 148 on at
    RE: Payparameter in the AX Dynamics

    This seems an ISV license issue, check with respective ISV admin and ask them to provide the license key which may have longer validity. Ideally ISV license comes with 12 months of validity until you are using a demo/development license key which normally comes with lesser validity.

  • MuthukumaranAX Profile Picture
    MuthukumaranAX 2,907 on at
    RE: Payparameter in the AX Dynamics

    do you have any ISV/3rd party code in the application? if so, can you check with them whether the license can be extended more than 90 days?

    thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans