This probably doesn't help but I just created a quick WinForms project in Visual Studio 2008 with your config and it worked OK (although I had to add the missing </configuration> closing tag - probably just a cut n' paste omission in your post though).
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Problem with Enterprise Library Logging Block
Collapse
X
-
-
I'll get you resourced into the planOriginally posted by voodooflux View PostThis probably doesn't help but I just created a quick WinForms project in Visual Studio 2008 with your config and it worked OK (although I had to add the missing </configuration> closing tag - probably just a cut n' paste omission in your post though).
Knock first as I might be balancing my chakras.Comment
-
Let me know where to send the invoiceOriginally posted by suityou01 View PostI'll get you resourced into the plan
Where are we going? And what’s with this hand basket?Comment
-
Cough Cough. Don't forget my consultancy fee!!Originally posted by voodooflux View PostLet me know where to send the invoice
Comment
-
Of course! Do you want to go direct to SY01 or sub-contract via me?Originally posted by Weltchy View PostCough Cough. Don't forget my consultancy fee!!
Where are we going? And what’s with this hand basket?Comment
-
Lets get some sort of circular sub-contractor chain going. I'll bill you, SY01 can bill me. I'm get some cheap as chips indian guy to do all the real work and we can make lots of money!!!Originally posted by voodooflux View PostOf course! Do you want to go direct to SY01 or sub-contract via me?
Anyway, back to the real world and writing SharePoint EventHandler codeComment
-
You could at least put [CODE]...[/CODE] tags around itOriginally posted by Weltchy View PostHave you got the required sections in the configSections block of web.config.
ie.
Also, your logging configuration should be something like thisCode:<configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=051e068228f92cd6" /> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
PS - I'm too lazy to reformat the above xml, so its all yours. Also, depending on which version your using, whether you've put the library into the GAC, etc, then the assembly references to the Enterprise Library may also be differentCode:<!--Added For Event Logging Application Configuration--> <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="General" logWarningsWhenNoCategoriesMatch="true"> <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=051e068228f92cd6" traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=051e068228f92cd6" name="Formatted EventLog TraceListener" /> </listeners> <formatters> <add template="Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=051e068228f92cd6" name="Text Formatter" /> </formatters> <categorySources> <add switchValue="All" name="General"> <listeners> <add name="Formatted EventLog TraceListener" /> </listeners> </add> </categorySources> <specialSources> <allEvents switchValue="All" name="All Events" /> <notProcessed switchValue="All" name="Unprocessed Category" /> <errors switchValue="All" name="Logging Errors & Warnings"> <listeners> <add name="Formatted EventLog TraceListener" /> </listeners> </errors> </specialSources> </loggingConfiguration>
Comment
-
Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- How IR35 inflated an £8.5bn consultancy bill — and tests Burnham at the Budget Aug 28 07:47
- Autumn Budget 2026: FCSA’s 5 contractor asks of John Healey Aug 27 04:15
- Andy Burnham's Zoom gripe doesn’t apply to IT contractors, say recruiters Aug 26 03:41
- Check your Loan Recall paperwork for the Isle of Man: it could matter Aug 25 03:27
- Budget 2026: Contractor advisers ask for ‘IR35 reset’ Aug 24 04:57
- Why might an umbrella company fail to pay its total tax bill to HMRC? Aug 18 06:08
- Contractors, here are the late payment fixes that the Lords just turned down Aug 17 08:03
- How will HMRC's Direct Debit plan affect contractors paying VAT and PAYE? Aug 13 23:54
- HMRC's new 'reckless' tax offence: an IR35 game-changer for contractors? Aug 13 13:50
- “I’m not a Machiavellian overlord”: Adrian Sacco breaks his silence on the Contractor Loan Recalls Aug 13 06:50

Comment