When I first had a look at the ASP.Net, I was overwhelmed by its features. The first ever feature I planned to implement in the .Net is a simple page counter which stores the counter in a simple txt file and show the counter in a dynamic image. Its not too much to ask ASP.net, given its strength.
Reality is a different story, After uploading the code:
1. First error I got is, app does not have required permission to update txt file which stores the counter.
2. I raised this issue with my shared server host, but no luck and they want me to pay ?50 to do it.
3. I tried to use the impersonate feature in web.config to use my allocated username and password in that server, but ASP.net refused to compile because my username didnt have enough permission to create the files for its tempDirectory.
4. I removed the web.config, it all compiled well but still had the problem of accessing the txt file.
5. I put back the web.config again, it works smooth.
6. After some days, it stopped working. its anyones guess when the asp.net recompiles the file and permission cannot write the tempDirectory again.
Simply, I can write to the tempDirectory if I am default anonymous user, but If I identify myself by impersonation I dont have enough permission.
Who to blame?
1. Server host
2. Microsoft
Is it unreasonable to blame MS?
No, my argument is why in the first place MS not giving proper guidelines to the hosting companies?