Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Enterprise Library Configuration failure

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hodge - 07 Jun 2006 11:58 GMT
Logger.Write fails with the message :-
"The entry 'Category' has already been added.
(C:\\inetpub\\wwwroot\\SIMWebClient\\web.config line 152)" string
Source "System.Configuration"    string

line 152 is the <add line in
 <loggingConfiguration tracingEnabled="true"
defaultCategory="General">
   <logFilters>
     <add
   name="Category"

type="Microsoft.Practices.EnterpriseLibrary.Logging.Filters.CategoryFilter,
Microsoft.Practices.EnterpriseLibrary.Logging"
   categoryFilterMode="AllowAllExceptDenied">

The exact configuration file has worked on another machine.
Unfortunately I don't understand the failure.
John
P.S. I have a full stack trace if it would help.
xplainenator@gmail.com - 22 Jun 2006 09:28 GMT
Hodge schreef:

> Logger.Write fails with the message :-
> "The entry 'Category' has already been added.
[quoted text clipped - 16 lines]
> John
> P.S. I have a full stack trace if it would help.

Hi Hodge,

I had the exact same problem when I deployed an update of our
webservice on our development server. I did it like 50 times and it
worked every time, and now suddenly I got that freakin' exception.
But i solved it!

Good to know:
On our webserver we made a subdirectory in c:\Inetpub
(C:\Inetpub\Company), which is also a website in IIS, so not under
Default website. In that directory we deployed our webservices.

Solution:
I did 2 things:
1) I deleted all the subfolders of C:\Inetpub\Company which had hidden
cache folders and stuff
2) I ran the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) for the
.NET 2.0 framework to re-registrate the .NET 2.0 framework in IIS. You
just run the tool in your command window:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Aspnet_regiis.exe -i

I don't know which part made it work again. It could be just one of
them or the both of them. All I know is that it worked for me and I'm
super happy!

Hope this helps you!

Kind regards,

xplain.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.