hola a todos.
estoy intentado crear una carpeta en asp.net bajo VB. pero no me la crea, por que puede ser?
Código:
Imports System.IO
Imports System.IO.Directory
' crear la carpeta
Dim strServerPath As String
strServerPath = Server.MapPath(".") & "\img\Foto-SubCategorias\" & id
If Not System.IO.Directory.Exists(strServerPath) Then
System.IO.Directory.CreateDirectory(strServerPath)
End If
'fin crear la carpeta