I'm not having much luck finding documentation that explains the second requirement needed for directory.createsubdirectory.
My code at present:
What visual studio is telling me is that the second parameter should be "directory security as system.security.accesscontrol.directorysecurity"
Hoping that it would default, I left it blank, resulting in the following error:"System.ArgumentException: Second path fragment must not be a drive or UNC name."
These seem to be completely different squawkings. Does anyone have any insight?
My code at present:
Code:
Dim strAddFolder As String = Server.MapPath("../docs/") & strDir
Dim objDirs As New DirectoryInfo(Server.MapPath("../docs"))
objDirs.CreateSubdirectory(strAddFolder)
Hoping that it would default, I left it blank, resulting in the following error:"System.ArgumentException: Second path fragment must not be a drive or UNC name."
These seem to be completely different squawkings. Does anyone have any insight?