views:

315

answers:

1

var directory = new DirectoryInfo( "\image0\Abc" );

        if (!directory.Exists)
        {
            directory.Create();
        }

when I user above asp.net code which unc path, I found the following problem. How can I solve?

Access to the path '\Image0\Abc' is denied.

Regards, atk

+2  A: 

add a Network Service account to that folder if it is located outside your web application folder. If it is, there might be a problem in the path that your accessing.

daxsorbito