For the background on this, the issue has to do with the fact that file uploads and downloads occur on background threads from the ThreadPool. These threads do not get the credentials from impersonation.
The final part of the work around was changing the app pool's identity (this code is from a web app) to be something that has access to version control. This is far from ideal, but impersonation combined with the change to the app pool identity is the best approach available with v1.
Buck
http://blogs.msdn.com/buckh |