我正在開發ASP.net web api(.NET Framework)並使用「Microsoft Office Document Imaging」v12。 在我的本地系統上,它工作正常。但後來我把它放在我的天藍色的web應用程序,我得到了以下錯誤:使用「Microsoft Office Document Imaging」獲取Azure Web App上的錯誤
Could not load file or assembly 'Interop.MODI, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
我敢肯定,我必須安裝「微軟Office Document Imaging中」。但是,當我僅使用Azure Web App時,我該怎麼做?
編輯:我發現了一個更好的方法來解決我的問題:https://azure.microsoft.com/de-de/services/cognitive-services/computer-vision/
謝謝您的回答! 我使用MODI從文檔/圖像中提取單詞。Aspose.Words也可以嗎? 我看到也有Aspose.OCR,但它的成本太高,我的需求.. –
我建議你可以考慮使用天藍色的虛擬機。正如我上面的天藍色網絡應用沙箱[鏈接](https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#unsupported-frameworks)所說,天藍色的網絡應用只支持第三方轉換工具。所以如果你使用sadbox不支持的工具,你將面臨同樣的錯誤。 –