When i develop the project in vs2005, I used log4jnet to record log in a html file. It work smoothly. But when i deployed the project the UAT environment. The log was not written successfully. I have search many material in internet. Finally i resolve it . Actually it very simply. I set the full control permission to IIS account for accessing the project deployment folder in UAT environment. And it can work normally.