Top "Structuremap" questions

StructureMap is a Dependency Injection / Inversion of Control tool for .NET licensed under Apache 2.

StructureMap Exception Code: 202 No Default Instance defined for PluginFamily

I am new to StructureMap. I have downloaded and am using version 2.6.1.0. I keep getting the below error: StructureMap Exception …

c# asp.net structuremap
Entity Framework : Change connection string at runtime

Assuming there is an ASP.NET MVC application that uses Entity Framework 6 with code-first approach and StructureMap as IoC. Also …

c# asp.net-mvc entity-framework dependency-injection structuremap
Configuring dependency injection with ASP.NET Web API 2.1

I'm creating an ASP.NET Web API 2.1 site and as I want to inject dependencies directly into the controllers, I've …

asp.net dependency-injection asp.net-web-api structuremap
Comparing Castle Windsor, Unity and StructureMap

In a follow up to Krzysztof’s statement that Windsor does a lot more than other IoC’s, I wanted …

dependency-injection castle-windsor structuremap unity-container ioc-container
How to configure StructureMap for asp.net MVC 5

I'm getting below error. I setup it similar to asp.net mvc 4. No parameterless constructor defined for this object. Description: …

c#-4.0 asp.net-mvc-4 dependency-injection structuremap asp.net-mvc-5
Structuremap, AutoFac, or Ninject, which one is great for a large scale web app?

I have some experience in working by Structuremap. And now I'm creating a big and large scale web app (really …

asp.net-mvc-3 ninject structuremap autofac
How to scan and auto-configure profiles in AutoMapper?

Is there any way to auto-configue Automapper to scan for all profiles in namespace/assembly? What I would like to …

.net structuremap profile automapper
Ways of keeping configuration code out of logic code using Dependency Injection

How can keep all the configuration file code out of my logic code using Settings (ApplicationSettingsBase) and Dependency Injection? With …

c# configuration dependency-injection structuremap application-settings
Passing constructor arguments when using StructureMap

I'm using StructureMap for my DI. Imagine I have a class that takes 1 argument like: public class ProductProvider : IProductProvider { public …

dependency-injection constructor structuremap
How to use Container instead of ObjectFactory in StructureMap ServiceActivator?

When implementing DI in WebAPI with StructureMap, we used the ServiceActivator found in Configuring Dependency Injection with ASP.NET WebAPI 2.1 …

asp.net-web-api structuremap