return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
ASP.NET / IIS Question....
View this Thread in Original format
UglyDave
Hi guys.. again - not the right forum for this!

K, here's what i'm trying to do:

Have a folder on my website called domain.com/Clients/Uploads

In the uploads directory,i'm gonna have a folder that each client stored their files in.

So, when i add a new client, i call the following:
code:
Directory.CreateDirectory(@"C:\Inetpub\wwwroot\Buncrana001\Clients\Uploads\" + directory.Text);


This worked fine when i tried executing from visual studio, but when i upload it to my server i get an access denied exception.

I've checkd the write property in the IIS propertys dialog for the uploads directory but i still cant create new directories in it.

any suggestions?

Thanks,
Davo
basd
quote:
Originally posted by UglyDave
Hi guys.. again - not the right forum for this!

Enough people read that subforum. Use it.

quote:
K, here's what i'm trying to do:

So, when i add a new client, i call the following:
code:
Directory.CreateDirectory(@"C:\Inetpub\wwwroot\Buncrana001\Clients\Uploads\" + directory.Text);


Might be a retarded remark, but have you tried changing that path to the actual web server path? I doubt you can make references to local paths over a web server like that.
UglyDave
yo dude,

i have changed the directory yes, but i'm also trying to run the site through my local IIS server and i still have the same problems..

When u run through Visual Studio, it executes on the VS web server - not IIS, so it's getting the samn thing to work on IIS that's the problem.

So yeah, the directorys are the same regardless whether i run from VS of on ly local IIS server,

Thanks,
David
biodigit
Access denied could mean lot of things. But by looking at the line of code where it's crashing, It's probably has to do with the user not having sufficient rights to write on that server.

You need to set the write permissions for the user that's trying to create a directory. Check IUSR_[computername] permissions and see if it has proper credentials set. If that doesnt fix the problem. Post the exact error message and see what I can do.
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement