System.ArgumentException occurred in ACCPAC.Advantage.Server.dll

By | August 23, 2019

The use of Sage 300 web screens is increasing day by day and there is a ample requirement of the customization that we supported in the desktop version. When we create the new module or have a customization in existing sage 300 screen, it requires the developer to create the project using the wizards provided by Sage. Sage has simplified it by providing various wizards and utilities along with documentation.

New Stuff:- I/C SHIPMENTS REPORT

We all are aware that debugging is very import part of programming which makes it handy to develop and track the issue(s) if any. Wizard provided by Sage creates the files with default values but we usually don’t keep the defaults (credentials) and change it from time to time. This needs to be remembered and valid values needs to be stored in the project if used for debugging.

One of the reason for an error “An exception of type ‘System.ArgumentException‘ occurred in ACCPAC.Advantage.Server.dll but was not handled in user code” is invalid Sage 300 Company ID, Sage 300 User ID or Sage 300 user password. The error breaks the code on function CreateBusinessEntities(). It becomes difficult to identify the cause of exception as it occurs while opening the entities which is not ordinarily considered due to problem with session.

'System.ArgumentException'

In order to get the program working and handling the issue, open “Global.asax.cs” file and make sure that the

credentials under function Session_Start() are valid to your sage 300.

Global.asax.cs

Alternatively, you can also check with the other solutions, as the similar error can be caused due to various reasons.

So, this can be helpful when the developer is stuck in the exception and becomes very cumbersome to track the cause and can proceed with the development.

About Us:-

Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix offers unique GUMU™ integrated solutions of Sage 300 with Sage CRM, Salesforce.com and Magento eCommerce along with Sage 300 Migration from Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works. We also offer best-in-class Sage 300 customization and development services and integration service for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and in Sage 300c development services we offer services such as upgrades of older codes and screens to new web screens, newer integrations using sdata and web services  to Sage business partners, end users and Sage PSG worldwide. Greytrix offers over 20+ Sage 300 productivity enhancing utilities that we can help you with such as GreyMatrix, Document Attachment, Document Numbering, Auto-Bank Reconciliation, Purchase Approval System, Three way PO matching, Bill of Lading and VAT for Middle East.

For more details on Sage 300 and 300c Services, please contact us at accpac@greytrix.com. We will be glad to assist you.