Azure应用服务找不到/index.html 500错误

问题描述

Angular项目:

我不太确定如何制作这首歌。我正在使用高级工具Kudu页面,并且有一个powershell窗口,显示index.html就在其中

D:\ home \ site \ wwwroot \ Dashboard \ index.html

在本地部署后,我可以正常访问网站

错误

Server cannot access application directory 'D:\home\site\wwwroot\Dashboard\index.html\'. 
The directory does not exist or is not accessible because of security settings.

Stacktrace:

[HttpException (0x80004005): Server cannot access application directory 'D:\home\site\wwwroot\Dashboard\index.html\'. The directory does not exist or is not accessible because of security settings.]
   System.Web.HttpRuntime.EnsureAccesstoApplicationDirectory() +12073934
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags,PolicyLevel policyLevel,Exception appDomainCreationException) +118

[HttpException (0x80004005): Server cannot access application directory 'D:\home\site\wwwroot\Dashboard\index.html\'. The directory does not exist or is not accessible because of security settings.]
   System.Web.HttpRuntime.FirstRequestinit(HttpContext context) +552
   System.Web.HttpRuntime.EnsureFirstRequestinit(HttpContext context) +122
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context) +737

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)