I'm new to .NET and C#. I need help in trying to do the following:
I need to use a URI (or something else) that allows all users of the
application to be able to access a directory and create a folder. The code
that works for some users is:
string DirLoc = "\\\\abc-prod01\\c$\Inetpub\\wwwroot\\Units\\"
Directory.CreateDirectory(DirLoc);
Users that (I assume) don't have access on this web server, get the
following message: Could not find a part of the path "\\abc-prod01\\c$".
Since that doesn't work for everyone, I thought that using a URI would work.
The one I used is:
string DirLoc = "file://abc-prod01/Units$"
Directory.CreateDirectory(DirLoc);
When using the URI, I receive the following message: URI Formats Not
Supported. So, does this mean I can't use URI's at all or that I formated the
URI incorrectly.
Please HELP!
--
DCount