Coding and Dismantling Stuff

Don't thank me, it's what I do.

About the author

Russell is a .Net developer based in Lancashire in the UK.  His day job is as a C# developer for the UK's largest online white-goods retailer, DRL Limited.

His weekend job entails alternately demolishing and constructing various bits of his home, much to the distress of his fiance Kelly, 3-year-old daughter Amelie, and menagerie of pets.

TextBox

  1. Fix dodgy keywords Google is scraping from my blog
  2. Complete migration of NHaml from Google Code to GitHub
  3. ReTelnet Mock Telnet Server à la Jetty
  4. Learn to use Git
  5. Complete beta release FHEMDotNet
  6. Publish FHEMDotNet on Google Code
  7. Learn NancyFX library
  8. Pull RussPAll/NHaml into NHaml/NHaml
  9. Open Source Blackberry Twitter app
  10. Other stuff

Spring.Net - Unable to locate Spring NamespaceHandler for XML schema namespace

Hi all,

I'm just putting this out in the wild because I've just spent a good few hours banging my head against a wall!  If you're using Spring.net for dependency injection, and you're getting an error similar to the following:

"Unable to locate Spring NamespaceHandler for XML schema namespace []"

Note the empty brackets - make sure you've got a correct namespace on your Spring.Net configuration!  Just to recap, your web.config / app.config should have the following custom configuration section, specifically including the bit in bold.  This namespace appears to be hardcoded into the Spring.Core assembly source as a trigger for "good" behaviour:

 

  <spring>
    <context>
      <resource uri="config://spring/objects" />
    </context>
    <objects xmlns="http://www.springframework.net">
    </objects>
  </spring>

 

Take care all,

Russ


Categories: Sneaky Bug Fixes
Permalink | Comments (0)