Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用创建一个文件夹
Directory.CreateDirectory(Server.MapPath(pathToCreate));
我得到访问被拒绝错误。
本地主机没有问题。
您是否在 AppHarbor 应用程序中启用了文件系统写入访问权限?
我认为您还需要在启用应用程序后重新部署它,但不是 100% 确定。
更新:根据发布者的回复,是的,您必须在启用此选项后重新部署。