Link to home
Start Free TrialLog in
Avatar of Andrew
AndrewFlag for United States of America

asked on

new to C# - Directory.CreateDirectory error?

Hello, I am new to C# and can't seem to figure out why I cannot use Directory.CreateDirectory in the user control code attached.  I have used it many times in VB.

User generated image
TIA,
Andrew
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

>>I have used it many times in VB.

Have you?  According to that error the SiteInfintyWebApp.UserControls.Directory does not contain a method called CreateDirectory.  (You might have used a different class in VB)
Avatar of Andrew

ASKER

Ok, I am confused...

using System.IO; allows for use of  Directory.CreateDirectory("TEST");

No?
Avatar of Andrew

ASKER

so?

System.IO.Directory.CreateDirectory("TEST");
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial