Logger doesnt create log file for Web App

Topics: Logging Application Block
Aug 1, 2008 at 5:14 PM
I have an ASP.NET web application (project type) for which I have configured the logging block. Now, when I run this application under IIS, the log file is not created, but when I change the project properties in VS2008 to "Use Visual Studio Development Server" it works.

The block is configured to create the log file at : %userprofile%\Local Settings\Application Data\RC\rc.log, and the file is not created when ran under IIS. The web application uses this folder to create temp files, but I dont understand why the log file would not be created when running it under IIS.

Aug 1, 2008 at 5:23 PM
My bad..forgot that the app runs under ASPNET, so the block creates the log file under ASPNET's application data folder instead. And this is how it should work.