User-1672167363 posted
Hi,
It may take awhile to get used to where folders files are located. This is "Best Effort" to explain.
Use the information in Tom's Post
http://blogs.iis.net/tomkmvp/archive/2008/12/11/what-is-virtual.aspx
for reference and "What is Virtual".
A) Next look at "%systemdrive%\inetpub\wwwroot\" using Windows Explorer.
B) Finally look at "%systemdrive%\inetpub\logs\" using Windows Explorer.
C) So where are my files on the file system or Web Server ?
D) The partial answer is "absolute" vs "relative" references and physical locations.
Plan 9 for for files and locations in file system and web server:
Step 1 ) For the Web Server http: // Server-Name / logs / could to be makedir as "%systemdrive%\inetpub\wwwroot\logs"
you then can use http:// Server-Name / logs / XXX-Client.log as reference in your code.
Step 2) The normal file system location that is used "%systemdrive%\inetpub\logs\AdvancedLogs\".
Step 3) You could create an Alias in Web Server logs that points to "%systemdrive%\inetpub\logs\AdvancedLogs\".
Note: The system variable "%systemdrive% is the drive location ie. C:\ it makes life easier.
You can use Step 1 - 3 as part of your coding.
For Step 3 it is the least desired method it has security risks.
For the folders you create for your logs need proper permissions and User rights to write the logs.
General Coding suggestion: Before you try to create a log have try catch block and check that
the folder or alias exists.
You may know some of the information above look at this as refresher.
HTH
Martin