2

同じ IIS 7 ボックスに 2 つの Web アプリケーションがあります。1 つのアプリケーションが .NET 2.0 のアプリケーション プールで実行されています。The other is running in a different app pool with .NET 4. どちらもアプリ プール ID として実行されており、設定は同じです。それぞれに、ネットワーク共有の仮想ディレクトリが含まれています。共有にアクセスするには、ユーザー名とパスワードを使用して接続します。.NET 2.0 Web アプリは問題なく接続します。ただし、.NET 4 Web アプリは、次のエラーを生成します。

Exception information:
    Exception type: System.Configuration.ConfigurationErrorsException
    Exception message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\share' because access is denied. (\\share\web.config)

Inner exception information (level 1):
    Exception type: System.Web.HttpException
    Exception message: Failed to start monitoring changes to '\\share' because access is denied.

これが一方では機能し、他方では機能しないのはなぜですか?

権限は正しいです:

代替テキスト http://uorcdn.com/foronlinesharing/20100702-0123pm.jpg

4

1 に答える 1

0

ファイルにアクセスできるようにするには、ASP.NET 偽装を有効にする必要がありました。なぜそうなのかはわかりませんが、現在有効になっており、機能しています。

于 2010-07-02T18:36:04.737 に答える