B
Bernie Raffe
I've just deployed my .Net Web app at an ISP on a shared
server.
Whenever I try to create a new directory, an exception is
raised - Could not find a part of the path "D:\"
I'm 100% certain that the directory path is correct, and
in fact one of the 3rd party components that I use tries
to create a 'thumbnails' directory (for images), and the
same exception is raised at that pont.
The first directory that it tries to create is:-
D:\WWWRoot\clubnoticeboardcom\www\ClubData\ClubNo30
(everything already exists apart from the
final 'ClubNo30' directory)
This doesn't appear to be the same error as occurs when
ASPNET doesn't have write permissions, it looks as though
its complaining about the root level directory.
Here's the code I use, but as I say - i'm pretty sure its
not a coding problem because even a 3rd party
professional component causes the same exception to be
raised.
private void createClubDirectories(int iClubId)
{
string strFullPath =
HttpContext.Current.Request.PhysicalApplicationPath
+ "ClubData\\ClubNo" + iClubId.ToString();
Directory.CreateDirectory(strFullPath+);
}
The ISP confirms that the ASPNET account has write/modify
permissions to the roor level directory and to the
ClubData directory.
Can anybody help please?
Thanks,
Bernie
server.
Whenever I try to create a new directory, an exception is
raised - Could not find a part of the path "D:\"
I'm 100% certain that the directory path is correct, and
in fact one of the 3rd party components that I use tries
to create a 'thumbnails' directory (for images), and the
same exception is raised at that pont.
The first directory that it tries to create is:-
D:\WWWRoot\clubnoticeboardcom\www\ClubData\ClubNo30
(everything already exists apart from the
final 'ClubNo30' directory)
This doesn't appear to be the same error as occurs when
ASPNET doesn't have write permissions, it looks as though
its complaining about the root level directory.
Here's the code I use, but as I say - i'm pretty sure its
not a coding problem because even a 3rd party
professional component causes the same exception to be
raised.
private void createClubDirectories(int iClubId)
{
string strFullPath =
HttpContext.Current.Request.PhysicalApplicationPath
+ "ClubData\\ClubNo" + iClubId.ToString();
Directory.CreateDirectory(strFullPath+);
}
The ISP confirms that the ASPNET account has write/modify
permissions to the roor level directory and to the
ClubData directory.
Can anybody help please?
Thanks,
Bernie