服务器文件操作问题

在本地能上传图片和文件,挂在服务器了之后就会报错,

堆栈信息如下:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n 在 System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)\r\n 在 System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)\r\n 在 OIS.WebApi.WebApiController.YYJH.ScheduleController.ExcelUpload(DateTime datetime, Int32 id)"

搞的很懵逼,最后才发现是用户权限没有写入的权限,用户权限添加写入的权限就可以了

posted @ 2021-06-16 15:20  眼中有光  阅读(262)  评论(0)    收藏  举报