I'm writing an ASP.NET application which needs to set up directories dynamically. However, I've noticed that the directories are not being created in the Inetpub\wwwroot\myApp directory as I expected. They are being created in the WINDOWS\system32\inetsrv\ directory. Is there a way of setting the default directory so that it will store the directories where I want?Hi Pink,
Try using Server.MapPath.
Also Make sure that you have the NTFS permissions setup correctly once you have used MAPPATH or Something like c:\inetpub\wwwroot\.....
That's brilliant. Thanks.
I've been using Server.MapPath from time to time but didn't actually know what it did!
0 comments:
Post a Comment