天青发布了Web应用程序错误,但该应用程序在本地Visual Studio 2017中运行良好 [英] azure published web app errors out, yet app runs fine in local visual studio 2017

查看:72
本文介绍了天青发布了Web应用程序错误,但该应用程序在本地Visual Studio 2017中运行良好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动应用程序时发生错误.

An error occurred while starting the application.

ArgumentException:目录名称'D:\ home \ site \ wwwroot \ node_modules \'不存在.
参数名称:path
ArgumentException: The directory name 'D:\home\site\wwwroot\node_modules\' does not exist.
Parameter name: path

推荐答案

FTP Kudu控制台 ,然后检查该目录是否可用.

As per the error message, the path is not available. I suggest you, access your site using FTP or Kudu console and check if that directory is available or not.

查看GitHub中概述的建议 部署与运行时问题 ,看看是否有帮助.参考帖子 在天蓝色时文件结构 了解文件集&目录放置在Azure Web App上,并确保已正确添加文件.

Check out the suggestions outlined in the GitHub Deployment vs runtime issues and see if it helps. Refer to the post File structure on azure to know the sets of files & directories on Azure Web App and ensure the files are added appropriately.

- -------------------------------------------------- --------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".要提供有关您的论坛体验的其他反馈,请单击 span> .

------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.


这篇关于天青发布了Web应用程序错误,但该应用程序在本地Visual Studio 2017中运行良好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆