【问题标题】:Cannot publish individual customization packages in Acumatica无法在 Acumatica 中发布单个自定义包
【发布时间】:2021-01-31 03:05:38
【问题描述】:

我的开发工作站出现了一个奇怪的问题。我不能再使用项目浏览器窗口在 Acumatica 中发布任何单个自定义包。但奇怪的是,我仍然可以在自定义项目主屏幕 (SM204505) 上毫无问题地发布 ALL 包。这导致了一个尴尬的开发工作流程。

此行为是在我将 Visual Studio 升级到次要版本(15.9.17 到 15.9.28)之后开始的。

这是项目浏览器中的错误截图:

事件查看器中的 505 错误跟踪日志:

Exception information:
    Exception type: NullReferenceException
    Exception message: Object reference not set to an instance of an object.
   at PX.Customization.CstValidationProcess.ProcessRequest(HttpContext context) in C:\Bld2\AC-FULL2019R113-JOB1\Sources\NetTools\PX.Web.Customization\Publish\CstValidationProcess.cs:line 89
   at ASP.controls_publish_aspx.ProcessRequest(HttpContext context) in c:\AcumaticaSites\TemporaryAspFiles\2019r1\2019r1\e88eaed9\5694cb3e\App_Web_publish.aspx.cc671b29.dndzcldh.0.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Request information:
    Request URL: http://localhost/2019r1/Controls/Publish.aspx?compile=true&callback_id=0&suffix=40060f45-d71e-4139-9922-bb678ddbdfb1
    Request path: /2019r1/Controls/Publish.aspx
    User host address: ::1
    User: admin
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: IIS APPPOOL\DefaultAppPool

我不确定如何解决这个问题。有什么想法吗?

【问题讨论】:

  • 我已经向 Acumatica 开了一张票,他们承认这是一个已知问题。收到他们的回复后,我会尝试与您联系。

标签: acumatica


【解决方案1】:

这是我从 Acumatica 支持部门收到的电子邮件:

我们已经调查了这个问题,发现它是由与新版本的 .Net Framework 的兼容性引起的。

您可以在此处找到更多详细信息:

https://community.acumatica.com/customization-and-development-72/known-issue-after-an-upgrade-to-net-framework-version-4-8-4250-users-were-unable-to-publish-a-customization-project-from-the-customization-project-editor-3854

以下版本已修复此问题:

  • 2019 R1 更新 22
  • 2019 R2 更新 15
  • 2020 R1 更新 13
  • 2020 R2 更新 3

作为一种解决方法,您可以在站点的 web.config(appSettings 部分)中将以下标志设置为 false:<add key="aspnet:DisableAppPathModifier" value="false" />

完整学分:德米特里·瑙莫夫

【讨论】:

  • 也应该可以从自定义屏幕而不是自定义本身中发布。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-08
  • 1970-01-01
相关资源
最近更新 更多