0

基本的にURLパターンを特定のコントローラーアクションにマップする静的ルートがあります。

routes.MapRoute(
name: "StaticRoute1", url: "getxml", defaults: new { Controller = "XmlData", Action = GetXml" });

したがって、URLは次のようになります。

www.example.com/getxml?id=1&size=100

XmlDataController GetXml メソッドを呼び出す必要があります。

ローカルでは問題なく動作しますが、本番環境では次のようになります。

指定された値と一致するルートがルート テーブルにありません。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: No route in the route table matches the supplied values.

この問題を診断するにはどうすればよいですか?

4

1 に答える 1