asp.net - C# accessing network disk -


i trying access network disk, c#, i've tried doing this:

if (!directory.exists(path)) //with \\server\path 

or

if (!(new fileinfo(path).exist)) //with \\server\path 

both tell me not exist.

i must say, running asp.net site , trying reach there, don't know if matters?

the thing trying dll needs path root directory of it's contents need specify path, path located in disk s disk s not logical disk, it's network disk.

we start iis website administrator of whole domain prevent not having privileges.

server\\path\path\path 

doesn't correct unc pathname me.

\\server\path\path\path 

should correct.

secondly, user account under iis process runs needs have appropriate permissions network location in question. identity used determined application pool it's in, or if app uses impersonation identifying client user. either way should careful grant permissions absolutely required app, , no more.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -