0

xxx.svcなどのWCFサービスエンドポイントにアクセスしようとしています。そして、私はこのエラーを受け取りました:

The exception message is: Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified

フュージョンログをオンにして、これを取得しました。

=== Pre-bind state information ===
LOG: User = xxx\xxx
LOG: DisplayName = App_Code
 (Partial)
LOG: Appbase = file:///D:/myService/
LOG: Initial PrivatePath = D:\myService\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\myService\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

WebアプリケーションにApp_Codeフォルダーがありません。なぜApp_Codeを探すのですか?

ありがとう!

4

2 に答える 2

1

ぐっすり眠った後、私はそれを理解します。precompiledApp.configファイルを忘れてしまいました。

于 2012-07-09T02:44:29.763 に答える
0

おそらく、無効な参照を使用しているか、使用したいものを参照していません。解決策は、web.configとすべての参照を確認し、必要であるが欠落している参照または無効な参照を検索することです。

于 2012-06-12T10:21:32.770 に答える