The current identity (NT Authority/Network Service) does not have write access to

后端 未结 6 415
清酒与你
清酒与你 2021-02-05 18:12

I developed a simple web application. A label and a button. On click of Button, the label will display Hello World.

When I deploy this web application on my web server

6条回答
  •  天涯浪人
    2021-02-05 18:26

    I ran into this error while replacing my domain server at home that hosts a bunch of websites, mostly data collection services for temperature etc. It also runs SSRS that I use to produce charts. I built new hardware and demoted the old box. It is no longer a DC, but a regular member of the domain. When I moved a website to the new server and tried to hit it, I got this error.

    Running aspnet_regiis did not change anything. Now it turns out that the site calls the Reporting Services web service that still pointed to the old server, and that the error message is actually coming from the demoted former domain controller. I had to run aspnet_regiis -i on the old server!

    Takeaways:

    1. Demoting a PDC can cause the permissions to get messed up, resulting in this error
    2. The error may not come from your local machine - look beyond the obvious!

提交回复
热议问题