私のプロジェクト全体で名前空間の名前が変更されました。すべてはまだ問題なく動作していますが、私のWebAPIは現在、私のコントローラに2つのルートを見つけています。名前空間のリファクタリング後の2つのルートMVC WebAPI
Multiple types were found that match the controller named 'department'.
This can happen if the route that services this request ('api/{controller}/{id}') found multiple controllers defined with the same name but differing namespaces, which is not supported.
The request for 'department' has found the following matching controllers:
A***.P***.Benutzerverwaltung.Jo***MVC.Controllers.DepartmentController
A***.Benutzerverwaltung.API.Controllers.DepartmentController
だから私は、第二に最初の名前空間の名前を変更し、私は古い名前空間のどこでも検索が、何も見つかりませんでした。だから、私は何ができますか?
ありがとうございました。
参照プロジェクトの名前を変更しましたか? –
はい、私の解決策には3つのプロジェクトがあり、私は2つの名前を変更しました –