System.UnauthorizedAccessException was unhandled

前端 未结 5 1251
既然无缘
既然无缘 2021-01-22 01:06

I am getting a access denied exception. How can I fix this?

Here is the exception:

System.UnauthorizedAccessException was unhandled HResult=-214

5条回答
  •  温柔的废话
    2021-01-22 01:44

    Double click on app.manifest file and if app.manifest not present Right click on your project, add -> New Item -> Application Manifest File then replace this line

    
    

    with this

    
    

    It will run your application with administrator privileges.

提交回复
热议问题