In mijn project maak ik gebruik van Microsoft.Practices.EnterpriseLibrary.Logging versie 4.0.0.0.
Hierbij hoort een deel configuratie in de web.config.
Wanneer ik deze functionaliteit probeer te gebruiken met de volgende code:
Dan krijg ik de volgende foutmelding:
An error occurred creating the configuration section handler for loggingConfiguration: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
web.config line 401
regel 401:
Welke expert heeft enig idee waar dit aan kan liggen?
Edit:
Gecontroleerd:
Assembly references staan goed.
Sections staan goed
Hierbij hoort een deel configuratie in de web.config.
Wanneer ik deze functionaliteit probeer te gebruiken met de volgende code:
Visual Basic .NET:
1
| WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath).GetSection("loggingConfiguration") |
Dan krijg ik de volgende foutmelding:
An error occurred creating the configuration section handler for loggingConfiguration: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
web.config line 401
regel 401:
XML:
1
| <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="" logWarningsWhenNoCategoriesMatch="true"> |
Welke expert heeft enig idee waar dit aan kan liggen?
Edit:
Gecontroleerd:
Assembly references staan goed.
Sections staan goed
[ Voor 4% gewijzigd door L01 op 19-01-2009 14:51 ]
Hi, I'm a signature virus. Put me in your signature to help me spread.