List Info

Thread: No logs on vista in program files




No logs on vista in program files
country flaguser name
United States
2008-05-11 11:00:29
No logs are writing on vista when the application should run
from programm
files
-- 
View this message in context: http://www.nabble.com/No-logs-on
-vista-in-program-files-tp17170585p17170585.html
Sent from the Log4net - Users mailing list archive at
Nabble.com.


RE: No logs on vista in program files
country flaguser name
United States
2008-05-11 11:57:50
 
If you are trying to write the logs to Program Files, you should change that. Vista does not support having a user write stuff to the Program Files structure. The only way that will work is if the user turns off UAC, which isn't recommended.
 
The safest thing is to create a folder under the user's MyDocuments for your application, and put the logs there. (We put ours there so the user could find them and send them to us.)
 
You can also write to Environment.SpecialFolders.LocalApplicationData, which is under the user's profile.
 
RobinS.


From: aus1977 [mailto:aus1977gmail.com]
Sent: Sun 5/11/2008 9:00 AM
To: log4net-userlogging.apache.org
Subject: No logs on vista in program files


No logs are writing on vista when the application should run from programm
files
--
View this message in context: http://www.nabble.com/No-logs-on-vista-in-program-files-tp17170585p17170585.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

RE: No logs on vista in program files
country flaguser name
United States
2008-05-11 11:59:55
Just to clarify, when I say "create a folder under the user's MyDocuments for your application", I don't mean install your app there, I mean create a folder with your application name and use it for the files you want the user to write to.
 
I noticed when I installed Adobe Photoshop, it created a folder under MyDocuments for the temporary files and files they use internally. So even Adobe couldn't get around this. <g>
 
RobinS.


From: Robin Shahan [mailto:Robin.Shahangoldmail.com]
Sent: Sun 5/11/2008 9:57 AM
To: Log4NET User
Subject: RE: No logs on vista in program files

 
If you are trying to write the logs to Program Files, you should change that. Vista does not support having a user write stuff to the Program Files structure. The only way that will work is if the user turns off UAC, which isn't recommended.
 
The safest thing is to create a folder under the user's MyDocuments for your application, and put the logs there. (We put ours there so the user could find them and send them to us.)
 
You can also write to Environment.SpecialFolders.LocalApplicationData, which is under the user's profile.
 
RobinS.


From: aus1977 [mailto:aus1977gmail.com]
Sent: Sun 5/11/2008 9:00 AM
To: log4net-userlogging.apache.org
Subject: No logs on vista in program files


No logs are writing on vista when the application should run from programm
files
--
View this message in context: http://www.nabble.com/No-logs-on-vista-in-program-files-tp17170585p17170585.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )