creating directory with asp.net

A

Arvind P Rangan

Hi,

I have tried creating folders through ASP.Net with Directory.Create(path)

But it gives me error

mscorlib Access to the path "C:\WINNT\system32" is denied. at
System.IO.__Error.WinIOError(Int32 errorCode, String str) at
System.IO.Directory.InternalCreateDirectory(String fullPath, String path) at
System.IO.Directory.CreateDirectory(String path)

Can somebody help how to solve this.
I have tried giving all possible rights on the folder still it doesnot work.

Application is Windows Authenticated.

Thanks
Arvind.
 
K

Karunakararao

This code should be useful to u

Use this name space

using System.IO;

Directory.CreateDirectory("c:\\ramteja");

Directory.CreateDirectory("c:\\FOLDERNAME");

Regards

Venu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top