title: Structuremap 207 error after deploying on IIS
body: <p>we are developing an application using ASP.Net MVC 3.0 framework. we are using structuremap for injecting the objects at runtime. for this purpose we are using constructor injection. we have written custom controller factory, where the creation of controllers are delegated to this factory through <code>return (Controller)ObjectFactory.GetInstance(controllerType);</code>. Defined definition using DSL by mapping interfaces with the concrete classes.</p>
  
  <p>Everything is working fine when the application is running on visual studio development server. But when the same application is deployed on the IIS 7.0, it is throwing 207 error while creating the objects at runtime.</p>
  
  <p>could anyone help whether we need to update any settings on IIS or help the steps to debug this issue? Please find the below stack trace for the issue</p>
  
  <pre><code>ExceptionStructureMap Exception Code:  
  207 Internal exception while creating Instance '83248ea8-b195-4166-8a7d-678e9a677c9f' of PluginType Payrs.Web.Controllers.PaymentRequestController.  
  Check the inner exception for more details.Stack Trace :   
   at StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder)  
      at StructureMap.Pipeline.ConstructorInstance.build(Type pluginType, BuildSession session)    
       at StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session)    
        at StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session)    
         at StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session)   
           at StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance)    
            at StructureMap.BuildSession.&lt;&gt;c__DisplayClass3.&lt;.ctor&gt;b__1()    
             at StructureMap.BuildSession.CreateInstance(Type pluginType)    
              at Payrs.Web.Infrastructure.PayrsControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)  
  
  
               **Inner Exception**    
  
                at Payrs.Web.Controllers.PaymentRequestController..ctor(IPaymentService paymentRequestService, IFundingService fundingService)   
                  at lambda_method(Closure , IArguments )     
                  at StructureMap.Construction.BuilderCompiler.FuncCompiler`1.&lt;&gt;c__DisplayClass2.&lt;CreateBuilder&gt;b__0(IArguments args)    
                   at StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args)    
                    at StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder)
  </code></pre>