Last post May 17, 2007 05:25 AM by O11Y
Jan 19, 2007 08:54 AM|O11Y|LINK
I've got an error with my Web Part that is driving me Insane. I Keep getting the following error when I try to create a file:
Error raised by Precedents Manager Error Log.
Message: System.UnauthorizedAccessException: Access to the path "\\CWBSSQLDEV\PrecedentsTree\Temp\633048097168871048_PrecedentSample1.doc" is denied.
at PrecedentsManager.TempFileManager.CreateTemporaryFile(HttpPostedFile file, String tempPath, String locPath)
at PrecedentsManager.AddPanel.but1_Click(Object sender, EventArgs e) Precedents Manager(2)
Source: Precedents Manager(2)
For more information, see Help and Support Center at
The File is Being created on a Shared Directory at CWBSSQLDEV. This dir has been given so many access rights that a local machine account in Albania could probably access it. I've tried loads of things but here are the general approaches I've tried.
There are probably other things but they were mainly stabbing in the dark (well most of it has been stabbing in the dark!). I've reached the point where I have no idea what to try, Anyone got any ideas?
Thanks very much,
May 17, 2007 05:25 AM|O11Y|LINK
This bug was caused by the dreaded (bum bum buuuuhh) Double Hop issue. If you are unfamiliar with this then I suggest you type "Double Hop" into google asap to prevent you ever having to go through the same frustration I did.
The solution to the double hop is to acquire a new Identity for the current process on the Web Server. In my case I Impersonated the application pool which gave me enough privallages to write my files.
Hope this helps someone.