Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.4k views
in .NET FTP by (140 points)
I've been struggling with a problem for some time concerning the .NET Framework when deploying my ASP.NET application onto shared hosting. It seems that the Directory.CreateDirectory method won't work on any subdirectories if the root directory doesn't have full write access.

Anyway, I've found a way around it by using unmanaged code that bypasses the Framework but I now have problems writing anything into the new directories due to permission settings ...

So I'm now thinking about FTP. When an FTP client is used to create the directories remotely then there's no problem - all files and directories are created with full permissions. So would it be possible to have a web application access its own FTP accounts? There wouldn't be a problem with the number of FTP accounts since only the site admins would be able to access the area of the web site which creates the directories/files.

I'd like some feedback before trying it out.

1 Answer

0 votes
by (161k points)
I imagine this would work.

So I'm now thinking about FTP. When an FTP client is used to create the directories remotely then there's no problem - all files and directories are created with full permissions. So would it be possible to have a web application access its own FTP accounts? There wouldn't be a problem with the number of FTP accounts since only the site admins would be able to access the area of the web site which creates the directories/files.

I'd like some feedback before trying it out.

Categories

...