Avatar of cses
cses

asked on 

Exception message: Server was unable to process request. ---> The entry 'Formatted EventLog TraceListener' has already been added.

Exception message: Server was unable to process request. ---> The entry 'Formatted EventLog TraceListener' has already been added.
<listeners>
			<add source="Enterprise Library Logging" formatter="Text Formatter" log="Application" machineName="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ca69e91d93e983f2" traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ca69e91d93e983f2" name="Formatted EventLog TraceListener"/>
		</listeners>

Open in new window

.NET Programming

Avatar of undefined
Last Comment
pointeman
Avatar of WendellUrth
WendellUrth

Your application may be already adding this from an inherited configuration file further up the tree.

You will need to add a remove directive before this:



Or stop the inheritance from applying like so:

http://forums.iis.net/p/994377/1297968.aspx#1297968

Avatar of cses
cses

ASKER

I have already tried the option inheritInChildApplications="false" but it didn't work. What else could be the reason.
ASKER CERTIFIED SOLUTION
Avatar of WendellUrth
WendellUrth

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of cses
cses

ASKER

<remove name="Formatted EventLog TraceListener"/>
did not work, it seems name doesn't allow spaces.
Avatar of pointeman
pointeman
Flag of United States of America image

Try using: <remove name="Default"/>
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo