New Folder in a UNC Path
I have the following code, in which I'm trying to create a new folder
inside a UNC path:
DirectoryInfo oDir = new DirectoryInfo("\\\\server\\folder\\" +
if (oDir.Exists == false)
catch (Exception ex)
When I try to run it, I get the following error:
Access to the path ..... is denied.
I have identity impersonate=true in my web config and I'm
impersonating in the code, so the proper user/permissions should be
used when it tries to create the folder, but it only works when I run
a local debug. I can copy files to the folder, if it exists.
|All times are GMT. The time now is 06:45 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.