Access denied on Response. Write( file ) Server 2008

I have a web app that impersonates. It takes a file template, copies it to a share, then using OpenDoc dynamically edits the file and closes it. Finally it pushes the new file to the client using Response.Write(filepath). With appropriate HTML headers. Since we moved the application to Windows Server 2008 everything works until the app tries to access the file on response.write = access denied. It appears that in that moment somehow the app is not using the impersonation account based on the eror message. What about response.write is different than JavaScript which still works in another situatiion? Is there some setting in the new IIS that I'm missing?  
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hi  daedalux,

Please try the below steps

Give read/write permission to the folder (filepath).
This can be done by right-clicking that folder and take the 'Properties' menu.

Uncheck the attribute ' Read Only' and click apply.

Please find the attached image for the same.
daedaluxAuthor Commented:
Thanks for your comment.
And I see how my question might be misleading. The problem doesn't happen when the app tries to create and edit the file. In fact the owner of the file is the impersonated user of the app. The problem starts when the app tries to *read* the file to send it to the client browser, which I do by redirecting to a new page in the same app who's sole purpose is that: sending out the file, which it does by using Response.Write(filepath). Again, this issues arrises when we moved the app to Windows Server 2008.
daedaluxAuthor Commented:
I found the solution on another post on another site.
I changed::

This fixed my problem. Now I no longer get Access Denied!!!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.