仅在注销时自定义发布时出错

Error upon customization publishing only when logged out

谁能解释为什么每次我在发布定制后必须重新登录时都会出现此错误?

如果我删除 Acumatica 实例并重新创建它,链接到现有数据库 - 它就可以正常工作。如果超时并且我必须重新登录,我会收到此错误:

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 Compiler Error Message: CS0117: 'PX.Data.PXLogin' does not contain a definition for 'EulaRequired'

 Source Error:


 Line 633:                                              username :
 Line 634:                                              string.Format("{0}@{1}", username, company);
 Line 635:      if (username == "admin" && PXLogin.EulaRequired(fullname))
 Line 636:      {
 Line 637:          PXContext.Session.SetString("EulaRequired", fullname);

在您的自定义中,您是否包含任何 PX*.dll 库?如果是这样,您可能正在替换站点所需的正确版本。确保自定义中唯一的 dll 文件是您创建的文件。

我不确定是什么原因造成的,但我删除了 Acumatica 实例,删除了自定义项目中的所有 class 库引用并重新开始。这似乎已经解决了问题。