Does the user your application is running under have access to C:\? That's usually not the case; allowing an application context access to the root directory presents a big security risk.
Instead create a specific directory, for example c:\logs and give the ASP.NET application pool's user account full rights to that directory alone.
blowdart
2008-12-22 10:30:46