2014-02-19 91 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 –