将 ASP.NET MVC 3 应用程序发布到Windows Azure 网站后,我在尝试加载站点时收到以下错误消息。该站点在我的开发服务器上按预期工作。
我可以采取哪些步骤来纠正此问题?
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