问题:System.UnauthorizedAccessException: 对路径“C:\Solution\Product\YinCaiAdmin\UploadFiles\shop\20190902\201909022046193059636.jpg”的访问被拒绝。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.File.InternalDelete(String path, Boolean checkHost) 在 System.IO.File.Delete(String path) 在

解决:

参考:https://www.cnblogs.com/leixin-nation/p/4794915.html

一、在IIS中的默认应用程序池-->高级设置...-->标识改成Local System可以解决该问题。注意是:【默认应用程序池】

C#中一些报错处理

 

相关文章:

  • 2021-11-17
  • 2021-05-27
  • 2022-01-18
  • 2021-07-12
  • 2022-12-23
  • 2021-11-15
猜你喜欢
  • 2021-04-30
  • 2022-12-23
  • 2021-11-01
  • 2021-11-09
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案