Why is access to the path denied?

前端 未结 29 1461
刺人心
刺人心 2020-11-22 15:25

I am having a problem where I am trying to delete my file but I get an exception.

if (result == \"Success\")
{
     if (FileUpload.HasFile)
     {
         t         


        
29条回答
  •  攒了一身酷
    2020-11-22 15:48

    In my case the problem was Norton. My in-house program doesn't have the proper digital signature and when it tried to delete a file it gave the UnauthorizedAccessException.

    If it give you a notification, you can handle it from there. In my case it didn't give a notification that I noticed. So here's how to keep Norton from blocking the program.

    1. Open Norton
    2. Click the down arrow
    3. Click History
    4. Find activity by program
    5. Click More Options
    6. Click Exclude Process

提交回复
热议问题