Click here to Skip to main content
15,884,237 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Asp.Net user Control use in C# project. Pin
Paddy Boyd23-Dec-08 22:16
Paddy Boyd23-Dec-08 22:16 
GeneralRe: Asp.Net user Control use in C# project. Pin
anish27patel23-Dec-08 23:57
anish27patel23-Dec-08 23:57 
QuestionActivex control for FTP Pin
sujithkumarsl23-Dec-08 18:27
sujithkumarsl23-Dec-08 18:27 
AnswerRe: Activex control for FTP Pin
Abhijit Jana23-Dec-08 18:37
professionalAbhijit Jana23-Dec-08 18:37 
AnswerRe: Activex control for FTP:Repost Pin
Brij23-Dec-08 18:38
mentorBrij23-Dec-08 18:38 
Questionhow to resolve com Exception Pin
koolprasad200323-Dec-08 18:06
professionalkoolprasad200323-Dec-08 18:06 
AnswerRe: how to resolve com Exception Pin
Brij23-Dec-08 18:27
mentorBrij23-Dec-08 18:27 
QuestionMy log4net is not working on releases (but works on asp.net debug mode) Pin
Rafferty Uy23-Dec-08 17:59
Rafferty Uy23-Dec-08 17:59 
Hi,

I'm having problems getting logs to work. Here are some configuration snippets.

// -- IN MY LOG4NET.XML ------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<!-- This section contains the log4net configuration settings -->
<!-- See http://logging.apache.org/log4net/release/manual/introduction.html for more information -->
<log4net>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="data/ErrorTrace.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d %-5level %logger - %message%newline" />
</layout>
</appender>

<!-- Possible levels: ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF -->
<root>
<level value="ALL" />
</root>

<logger name="MyWebAppLogger">
<level value="ALL" />
<appender-ref ref="FileAppender" />
</logger>
</log4net>

// -- IN MY WEB.CONFIG -------------------------------------------
<add key="log4netXmlPath" value="log4net.xml"/>


// -- IN MY GLOBAL.ASAX.CS ---------------------------------------
protected void Application_Start(object sender, EventArgs e)
{
var config = new FileInfo(configPath);
log4net.Config.XmlConfigurator.ConfigureAndWatch(config);
}


What could be wrong? For some reason when I enter debug mode through visual studio (by pressing F5), it correctly creates the data sub directory as well as the ErrorTrace.txt. However, it does not work when I copy the release files to my IIS virtual directory.
*Additional note: the virtual directory is configured to have write access.

Can anyone help?


Rafferty
AnswerRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Paddy Boyd23-Dec-08 22:18
Paddy Boyd23-Dec-08 22:18 
GeneralRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Rafferty Uy23-Dec-08 22:32
Rafferty Uy23-Dec-08 22:32 
GeneralRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Paddy Boyd23-Dec-08 22:35
Paddy Boyd23-Dec-08 22:35 
GeneralRe: My log4net is not working on releases (but works on asp.net debug mode) Pin
Rafferty Uy23-Dec-08 23:06
Rafferty Uy23-Dec-08 23:06 
Questionabout dropdownlist Pin
Rajeshwar Code- Developer23-Dec-08 17:10
Rajeshwar Code- Developer23-Dec-08 17:10 
AnswerRe: about dropdownlist Pin
N a v a n e e t h23-Dec-08 17:12
N a v a n e e t h23-Dec-08 17:12 
GeneralRe: about dropdownlist Pin
Rajeshwar Code- Developer23-Dec-08 17:15
Rajeshwar Code- Developer23-Dec-08 17:15 
QuestionAjax Calendar Pin
sarang_k23-Dec-08 16:49
sarang_k23-Dec-08 16:49 
AnswerRe: Ajax Calendar Pin
N a v a n e e t h23-Dec-08 17:05
N a v a n e e t h23-Dec-08 17:05 
QuestionAjaxToolkit with gridview Pin
papy-boom23-Dec-08 14:29
papy-boom23-Dec-08 14:29 
AnswerRe: AjaxToolkit with gridview Pin
PunkIsNotDead15-Jul-09 8:04
PunkIsNotDead15-Jul-09 8:04 
QuestionProblem with FormView and Update query Pin
David Mujica23-Dec-08 10:51
David Mujica23-Dec-08 10:51 
GeneralPage Refresh Question Pin
Tom Delany23-Dec-08 6:46
Tom Delany23-Dec-08 6:46 
GeneralRe: Page Refresh Question Pin
Tom Delany23-Dec-08 7:18
Tom Delany23-Dec-08 7:18 
GeneralRe: Page Refresh Question Pin
ToddHileHoffer23-Dec-08 7:25
ToddHileHoffer23-Dec-08 7:25 
GeneralRe: Page Refresh Question Pin
Tom Delany23-Dec-08 7:35
Tom Delany23-Dec-08 7:35 
GeneralRe: Page Refresh Question Pin
ToddHileHoffer23-Dec-08 8:05
ToddHileHoffer23-Dec-08 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.