小编Car*_*ira的帖子

Azure云服务上的Umbraco 7.0.2 - 拒绝访问路径"E:\ sitesroot\1\config\applications.config"

我在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)

c# umbraco azure umbraco7 azure-cloud-services

5
推荐指数
1
解决办法
927
查看次数

标签 统计

azure ×1

azure-cloud-services ×1

c# ×1

umbraco ×1

umbraco7 ×1