CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 2/20/2008 8:05:03 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 68 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"nsathish" <>
NewsGroup User
Logging application block2/20/2008 8:05:03 PM

0

Hi,

I am using Enterprise Library Logging application block to log exceptions to event viewer. I have configured this in my website web.config file and also in my WCF service web.config file. I have deployed portal and service in IIS 6.0. I have created a new website pointing to portal and a virtual directory inside the website to point to WCF service.

When I try to access the service, I get error "The entry 'Formatted EventLog TraceListener' has already been added."

When I tried different options like pointing portal to one virtual directory and service to one virtual directory, I am not getting this issue even though both the folders have web.config  file configured with logging application block. This occurs only when I configure portal to website and service to a virtual directory. How do I resolve this issue?.

Please let me know if I am not clear, I can provide more details? 

Thanks,

Sathish N

 

 

"Benson Yu - MS
NewsGroup User
Re: Logging application block2/26/2008 5:46:59 AM

0

nsathish:
I have configured this in my website web.config file and also in my WCF service web.config file.

 The entry 'Formatted EventLog TraceListener' has already been added

Hi Sathish,

After adding the ?TraceListener? in the website?s web.config, you don?t need to add it again in the sub-application?s web.config because it inherits its parent web.config?s setting. Hence, please remove the duplicate enties from the child web.config.


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
2 Items, 1 Pages 1 |< << Go >> >|




   
  Privacy | Contact Us
All Times Are GMT