2014-02-19 95 views
0

当我尝试注册自定义服务时,出现此错误。动态ax部署WCF服务

Runtime Error Code: AifSchemaStore (table), no valid executable code in method 'getCachedSchema.

堆栈跟踪:

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

所以我不能部署它。

+0

你看过这个'AifSchemaStore'表的'getCachedSchema'方法吗?这个错误通常意味着你有编译错误。 – Pierre

+0

是的,当我编译AifSchemaStore我得到这个错误:宏#AifSchemaStore_SchemaCacheScope不存在线cacheData = globalObjectCache.find(#AifSchemaStore_SchemaCacheScope,[schemaId]);有什么建议吗? –

回答

2

您可能会对安装CU后未正确合并的AIF宏进行自定义。

  • 转到AOT - - AIF
  • 右键单击AIF marcro的点击比较...
  • 滚动一路下来,你应该看到这条线上的差异 #define.AifSchemaStore_SchemaCacheScope ('AifSchemaStore_SchemaCache')
  • 通过点击t将其合并到最高层他在左边的箭头

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

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

+0

yesssssssss,这是解决方案谢谢先生 –

+0

再次感谢,但我现在有另一个问题。我按照此示例来部署service.when我试图“通过使用基本入站集成端口部署数据合同服务”我收到以下错误:Le port«EmployeeTestServiceGroup»n'a pas puêtredéployé。\ nErreur: c:\ Users \ MSAX \ AppData \ Local \ Temp \ ServiceGeneration \ EmployeeServiceTestGetEmployeeResponse.cs(16,16):错误CS0246: Le type type name name'EmployeeTest'est introuvable(une directives using ou uneréférenced'assembly est-elle manquante?) –

+0

。找不到名称空间是指datacontract EmployeeTest.i'm确定我不跳过任何步骤并在每一步编译类没有问题。该示例是在http://msdn.microsoft.com/EN-US/library/gg844225.aspx –