我在Azure上运行了一个Cloud Service,我正在尝试将Umbraco作为VirtualApplication添加到WebRole:
ServiceDefinition.csdef中:
...
<Site name="Web">
<VirtualApplication name="cms" physicalDirectory="../../../umbracocms" />
...
Run Code Online (Sandbox Code Playgroud)
它在模拟器上的本地计算机上运行完美,但是当我将程序包部署到Azure Cloud Service时,我无法访问Umbraco页面,它会返回以下错误:
Access to the path 'E:\sitesroot\1\config\applications.config' is denied.
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.UnauthorizedAccessException: Access to the path 'E:\sitesroot\1\config\applications.config' is denied.
Run Code Online (Sandbox Code Playgroud)
堆栈跟踪:
[UnauthorizedAccessException: Access to the path 'E:\sitesroot\1\config\applications.config' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +216
System.IO.FileStream.Init(String path, FileMode mode, …Run Code Online (Sandbox Code Playgroud)