0

ASP.NET MVC 3 アプリケーションをWindows Azure Web サイトに発行した後、サイトを読み込もうとすると、次のエラー メッセージが表示されます。サイトは私の開発サーバーで期待どおりに動作します。

この問題を修正するには、どのような手順を実行できますか?

Server Error in '/' Application.
--------------------------------------------------------------------------------

The current identity (IIS APPPOOL\myapp) does not have write access to 'C:\DWASFiles\Sites\myapp\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\myapp) does not have write access to 'C:\DWASFiles\Sites\myapp\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\myapp) does not have write access to 'C:\DWASFiles\Sites\myapp\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +9899906
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +199

[HttpException (0x80004005): The current identity (IIS APPPOOL\myapp) does not have write access to 'C:\DWASFiles\Sites\myapp\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9877804
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
    --------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.19064 
4

1 に答える 1

2

Azure 管理ポータルから、Web サイトで完全なSTOPを実行してみてください。少し待ってからSTARTを実行してください。

私たちはこれとまったく同じ問題を抱えていました。すばやく「再起動」しても効果はありませんでしたが (何度も試しましたが)、David Ebbo の提案をもう少し進めてみることにしました。

于 2014-05-01T22:13:07.523 に答える