动态ax部署WCF服务

时间:2014-02-19 08:36:41

标签: wcf deployment service axapta

当我尝试注册自定义服务时,我收到此错误。

  

运行时错误代码:AifSchemaStore(表),方法'getCachedSchema中没有有效的可执行代码。

堆栈追踪:

  

(S)\ Data Dictionary \ Tables \ AifSchemaStore \ Methods \ getCachedSchema   (S)\ Data Dictionary \ Tables \ AifSchemaStore \ Methods \ getDocumentSchema - 第16行   (S)\ Classes \ AifSchemaInfo \ parmSchemaXml - 第19行   (S)\ Classes \ AifSchemaRepository \ getSharedTypesXmlSchema - 第9行   (S)\ Classes \ AifServiceGenerationManager \ registerService - 第43行   (S)\ Classes \ AifServiceGenerationManager \ main - 第20行

所以我无法部署它。

1 个答案:

答案 0 :(得分:2)

您可能在安装CU后未对AIF宏进行自定义。

  • 转到 AOT - - AIF
  • 点击 AIF 右键点击比较...
  • 完全向下滚动,你应该看到这一行有所不同 #define.AifSchemaStore_SchemaCacheScope ('AifSchemaStore_SchemaCache')
  • 点击lefd
  • 上的箭头,将其合并到最高层

编译AifSchemaStore表,错误应该消失。

如果需要升级,您应该检查所有自定义项。 还要完整编译你的代码并生成Full CIL,否则你会遇到很多问题(至少要编译AifSchemaStore表和增量CIL)。