Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Intermittent “No Default Instance defined for PluginFamily” exceptions #2

liddellj opened this Issue · 0 comments

1 participant

Jim Liddell
Jim Liddell

For background on this issue, please refer to the following (now read-only) OpenRasta Google Group: and then the following StackOverflow question:

I'm seeing intermittent behaviour whereby StructureMap is returning "No Default Instance defined for PluginFamily" errors when resolving types in OpenRasta. Which type is referred to is inconsistent. Sometimes it is an internal dependency of OpenRasta, sometimes it is one of our own handlers. Sometimes everything works as it should without issue.

The situation is easy to reproduce both locally, using Cassini, and on our test server, Windows 2008 R2 x64 running IIS 7.5. Generally it manifests itself when there is a series of rapid requests against the same OpenRasta service. In our case, we have a web app which is issuing a number of AJAX requests against the service in quick succession. This would appear to suggest that it is somehow timing related. We don't see the issue if we issue single requests at a time.

OpenRasta 2.0. and 2.1.

StructureMap 2.6.3.

One of the comments against the SO questions from another user suggests states "The reason we think it's happening is because of the way structure map works with regards to registration of objects using funcs. Basically you end up with the wrong web context."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.