System.IO.FileNotFoundException:偶数文件存在 [英] System.IO.FileNotFoundException: even file exist
问题描述
Asp.NET Core 2.0
Asp.NET Core 2.0
我尝试删除文件并上传新文件。
I've tried delete file and upload new one.
重新启动Web App。
Restarted Web App.
在本地服务器上运行良好
On Local server working good
发生了未处理的异常:找不到文件'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ datafiles\V2 \0\PopWords\13.xml'。
$
System.IO.FileNotFoundException:找不到文件'D:\\\\\\\\\\\\\\\\\\\ \\ www.root \datafiles\V2 \0\PopWords\13.xml'。
文件名:'D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ V2 /\\0\PopWords\13.xml'
An unhandled exception has occurred: Could not find file 'D:\home\site\wwwroot\wwwroot\datafiles\V2\0\PopWords\13.xml'.
System.IO.FileNotFoundException: Could not find file 'D:\home\site\wwwroot\wwwroot\datafiles\V2\0\PopWords\13.xml'.
File name: 'D:\home\site\wwwroot\wwwroot\datafiles\V2\0\PopWords\13.xml'
推荐答案
您是如何配置应用程序的,我建议您查看配置文件,请参阅此
< a href ="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/azure-apps/troubleshoot?view=aspnetcore-2.0">
链接有关在Azure应用服务上对asp.net进行故障排除的指南。
How exactly did you provision the App and I suggest you review your config files, refer to this link for a guide on troubleshooting asp.net on Azure App services.
参考:
使用Visual Studio向ASP.NET发布ASP.NET核心应用程序。
这篇关于System.IO.FileNotFoundException:偶数文件存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!