Azure WebRole 部署后403错误

来源:互联网 发布:预测算法java代码实现 编辑:程序博客网 时间:2024/06/05 16:21

403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

上面是看到的部署后的错误 解决方法:在web.config 里面添加主页就可以了


<configuration>

  <system.webServer>
    <defaultDocument enabled="true">
      <files>
        <add value="MainWebForm.aspx" />
      </files>
    </defaultDocument>

  </system.webServer>

.....

</configuration>

0 0