Thanks for your quick response. Yes, I did just that and it works fine.
My template directory, however, is outside the project folder. I have machine asp.net account permissions added to the folder, still the same error. Does it mean the template directory must be located under project folder or there's something else that I'm missing?