1

興味深いものです。

半ダースの開発者のチームの中で、次の問題を経験しているのは私だけなので、それが私自身に固有のものであることはかなり確信していますが、原因を突き止めることはできないようです.

Orchard ベースのサイトを使用すると、既定のホームページは Route プロバイダーを使用してオーバーライドされます。

public IEnumerable<RouteDescriptor> GetRoutes()
        {
            return new[]{
                new RouteDescriptor{
                    Name = "Homepage",
                    Priority = 85,
                    Route = new Route(
                        "",
                        new RouteValueDictionary{
                            {"area", "Area"},
                            {"controller", "BingoGame"},
                            {"action", "BingoRealm" },
                            {"realm", "realmName" }
                        },
                        new RouteValueDictionary(),
                        new RouteValueDictionary{
                            {"area", "Area"}
                        },
                        new MvcRouteHandler())
                },
                ...

ただし、アプリケーションにログインすると (ホームページに移動すると思われる場所で、次のエラーが発生します。

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

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.

Source Error:

Line 160:            public void EndProcessRequest(IAsyncResult result) {
Line 161:                try {
Line 162:                    _httpAsyncHandler.EndProcessRequest(result);
Line 163:                }
Line 164:                finally {

So here we have somewhere that establishes a route yet try to access that route and nothing is found.

As I mentioned, only myself is experiencing this particular error and we can think of nothing local to my machine that should be influencing this matter.

Solutions? Suggestions? Questions?

4

2 に答える 2

0

人々に知らせるために: それで、誰かが私たちのエラー処理モジュールをレシピからコメントアウトし、それを元に戻すのを忘れていたことが判明しました。その時点でエラー報告が適切に機能していなかったため、表示されませんでした。

于 2013-06-17T08:05:22.807 に答える
0

これが失敗した例をいくつか見てきました。ここで試してみてください:

Web サーバー インスタンスを停止し、Dependenciesフォルダを削除してApp_Dataから再起動してみてください。Visual Studio でコンパイルした後、Orchard が新しいアセンブリの読み込みを拒否することがあります。

この問題は、依存関係フォルダーでアセンブリがロックされるために発生します。開発サーバー/IIS Express はコンパイル中にまだ実行されているため、依存関係のアセンブリは新しいものに置き換えられません。

IIS Express/Dev Web サーバーを停止し、プロジェクトを再度実行することで、問題のある動作を修正できます。ここでさらに安全を確保したい場合は、依存関係フォルダーを削除してください。

于 2013-06-15T07:58:21.160 に答える