【解決方法】現在の ID (IIS APPPOOL\domain) には、’C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files’ への書き込みアクセス権がありません。

プログラミングQA


正常に動作していた顧客用にデプロイした Web サイトがありますが、現在このエラーが発生しています。

C#
The current identity (IIS APPPOOL\abc.com) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.

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.Web.HttpException: The current identity (IIS APPPOOL\abc.com) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[HttpException (0x80004005): The current identity (IIS APPPOOL\abc.com) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +948
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +319

[HttpException (0x80004005): The current identity (IIS APPPOOL\abc.com) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +646
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +771

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

解決策 1

解決策 2

この問題は次の方法で解決できます。

1. 強力なパスワードを使用して Windows Domain\Local Machine ユーザー アカウントを作成します。
2. Windows エクスプローラーを使用して、C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files に移動します。
3. 手順 1 で作成した新しいユーザーに、フォルダー パスへのフル コントロール アクセス許可を付与します。[適用]と[OK]をクリックします。
4. 次のリンクを使用して、作成したユーザーを WS2012AppPool または WS2013AppPool (インストールしたバージョンに応じて) の IISAppPool ID として指定する必要があります。

IIS 7 以降:

http://technet.microsoft.com/en-us/library/cc771170(v=ws.10).aspx

IIS6:

http://blogs.msdn.com/b/friis/archive/2010/10/08/steps-for-setting-up-a-custom-identity-of-an-iis-6-application-pool.aspx
C#

解決策 3

私の問題に答えてくれたすべての人に感謝します。
この問題は、サーバーのディスク容量が少ないことが原因でした。 古いデータを空にするだけで、サイトは生き生きとしています。

解決策 4

wweb.config の system.web 内のコンパイル タグ内に tempDirectory=”d:\local\temp\ フィールドを追加して、エラー (「現在の ID (IIS APPPOOL\abc.com) には ‘C:\ への書き込みアクセス権がありません」 Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'”)

解決策 5

まず、フレームワーク フォルダー (C:\Windows\Microsoft.NET\Framework64\v2.0.50727/v4.0.30319) には「一時 ASP.NET ファイル“。そうでない場合は、この名前で作成します。次に、アクセス許可を確認します (プロパティ -> セキュリティ -> IIS_IUSER -> すべてのアクセス許可を許可する)。

これで私の問題は解決しました。

コメント

タイトルとURLをコピーしました