On Mon, 14 Jun 2004 20:50:30 +0200, Bob Rock
<no***************************@hotmail.com> wrote:
Hello,
I'd like to log to a file from an asp.net application but it seems that
the
user under which asp.net applications run has very limited permissions.
Apart giving the user greater permissions, is there any other solution to
allow logging to file system???
Also I'd like to write to the bin or root asp.net application folder,
how do
I get this folder dynamically from the application itself???
Bob Rock
Either write to one of your web app's folders (recommended), or give the
aspnet user write access to whatever folder you are going to write to. To
find a local folder's path, use Server.MapPath("./bin"), etc.
May I also recommend using log4net for logging? It's synonymous to Java's
log4j, and works pretty well OOTB. So you don't have to write a bunch of
logging infrastructure.
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET