私は既存のWebサイトの設定と作業(kentico 10)を持っています。仮想ディレクトリを使用してWeb APIを追加したいと思います。仮想ディレクトリを持つ既存のアプリケーションにWeb APIを追加
私はweb apiプロジェクトをセットアップしました。IISを通常のサイトとしてマップすると動作します。しかし、私が仮想ディレクトリとしてフォルダをマップし、私のkenticoサイトにアプリケーションに変換するとエラーが出ます。私はkenticoウェブの設定に起因するエラーやない新しいWeb APIのweb.configファイル/サービスを取得していますなぜ私が理解しないことである:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Web' does not exist in the namespace 'CMS.Base' (are you missing an assembly reference?)
Source Error:
Line 47: <namespaces>
Line 48: <add namespace="CMS.Helpers" />
Line 49: <add namespace="CMS.Base.Web.UI" />
Line 50: </namespaces>
Line 51: </pages>
私は、Web APIプロジェクトのビンにこれらのDLLを追加してみましたこのエラーは停止しましたが、web-apiプロジェクトのkenticoから期待どおりのデータを取得できませんでした。 IISでWebサイト内のアプリケーションを作成するたびに
おかげで