ASP.NET MVC System.UnauthorizedAccessException拒绝访问路径

时间:2016-03-16 17:13:25

标签: c# asp.net-mvc asp.net-mvc-4 appharbor

我是ASP.NET MVC的新手,我遇到了问题。当我在我的AppHarbor主机帐户上发布我的网络应用程序时,当我去更改文件时,我得到jsfunction例外:

System.UnauthorizedAccessException

我尝试在 Web.config 中添加Access to the string "path" is denied in this part of code string path = Server.MapPath("~/Content/currentImage.txt"); FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write); ,但它仍无效。

有什么建议吗?

0 个答案:

没有答案
相关问题