Some properties of EventSchemaTraceListener are not recognized by app.config

The following EventSchemaTraceListener properties, which are intended for log rotation, are not recognized in app.config (.Net 3.5):

bufferSize="65536" maximumFileSize="1024" logRetentionOption="LimitedCircularFiles" maximumNumberOfFiles="2" 
+4
source share
2 answers

In your question, you say that properties are not recognized in app.config ; make sure that you also update the [ApplicationName].exe.config file located in the output folder with the executable file (or delete it so that it can be created from scratch when the application starts).

See this answer for an explanation of why you cannot just update app.config to see your new settings.

+1
source

Do you mean that the attributes are flagged as errors (which may just be an IDE problem) or the settings do not work?

Here is an example: http://msdn.microsoft.com/en-us/library/system.diagnostics.eventschematracelistener.aspx

Please note, however, that some of the comments suggest that they also had problems with his work.

0
source

All Articles