StuckInTheMiddle
Programmer
Hi Guys,
I have a web service that takes a network address to a word doc as an input and it renames the document (using FileInfo.MoveTo) to something else (not really important).
This works great when the webservice is given a C:\ or e:\ drive path, but as soon as a UNC path to the same location is given ASP.NET protests 'Access to the path is denied.'
Now I know it's a permissions thing but the folder (setup as a FileShare) has full control given to the IIS_WPG user and the Network_service user which I thought would solve the UNC path problem. I just don't get what the difference between
e:\myfolder\myfile1.doc
AND
\\myserver\myfolder\myfile1.doc OR
\\myserver\e$\myfolder\myfile1.doc is?
I've tried giving permissions to these users (ASPNET, IUSR_myserver, IWAM__myserver) all with no luck, any ideas I cant really enforce the calling application to give me a e:\ instead of a UNC path,, grrr, this has been bugging me all day, I'm sure it's something simple that someone must have done before but couldn't find anything when googling for it.
A,
"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.
I have a web service that takes a network address to a word doc as an input and it renames the document (using FileInfo.MoveTo) to something else (not really important).
This works great when the webservice is given a C:\ or e:\ drive path, but as soon as a UNC path to the same location is given ASP.NET protests 'Access to the path is denied.'
Now I know it's a permissions thing but the folder (setup as a FileShare) has full control given to the IIS_WPG user and the Network_service user which I thought would solve the UNC path problem. I just don't get what the difference between
e:\myfolder\myfile1.doc
AND
\\myserver\myfolder\myfile1.doc OR
\\myserver\e$\myfolder\myfile1.doc is?
I've tried giving permissions to these users (ASPNET, IUSR_myserver, IWAM__myserver) all with no luck, any ideas I cant really enforce the calling application to give me a e:\ instead of a UNC path,, grrr, this has been bugging me all day, I'm sure it's something simple that someone must have done before but couldn't find anything when googling for it.
A,
"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.