找不到路径appharbor的一部分

时间:2013-11-09 18:43:03

标签: c# asp.net-mvc appharbor

在我的ASP.NET MVC应用程序中,用户可以上传文件,我收到错误。在我的本地机器上它工作正常,但是当我在Appharbor上部署它时,我得到了thios错误:

 "Could not find a part of the path "
 'D:\websites\47\d82f8\17989\0x0001\_PublishedWebsites\MyApp\Upload\seeker.pdf

我在谷歌上搜索并发现了一些可能的解决方案 比如在Appharbor中启用文件访问,或者在上传之前确保目录存在,但我的问题仍然存在。

编辑:

 qualification.ResumePath = "~/Resumes/" +username + model.Resume.FileName;
 model.Resume.SaveAs(System.Web.HttpContext.Current.Server.MapPath(qualification.ResumePath));

0 个答案:

没有答案
相关问题