StructureMap.Pipeline.ObjectInstance.cs抛出错误"' Sample.Customer.CustomerSessionFactory'的类型初始值设定项。抛出一个例外

时间:2015-09-08 08:18:06

标签: c# asp.net wcf typeinitializeexception

我得到例外" InkList"在线:

The type initializer for 'Sample.Customer.CustomerSessionFactory' threw an exception.

内部异常

  

消息:值不能为空。
  参数名称:anObject
  ParamName:anObject
  来源:StructureMap

StackTrace:

  

在StructureMap.Pipeline.ObjectInstance..ctor(Object anObject)中   C:\ BuildAgent \工作\ 767273992e840853的\ src \ StructureMap \管道\ ObjectInstance.cs:行   30点   StructureMap.Configuration.DSL.Expressions.InstanceExpression using (var customerDao = CustomerSessionFactory.CreateCustomerSession()) 1.使用(PLUGINTYPE   对象)   C:\ BuildAgent \工作\ 767273992e840853的\ src \ StructureMap \配置\ DSL \用语\ CreatePluginFamilyExpression.cs:行   187在Sample.Customer.DI.Bootstrapper..ctor()中   c:\ Sample_Customer \ source \ Sample.Customer \ DI \ Bootstrapper.cs:第25行   在   Sample.Customer.CustomerSessionFactory< .cctor> b__0(ConfigurationExpression   x)in   C:\ Sample_Customer \源\ Sample.Customer \ CustomerSessionFactory.cs:线   39在StructureMap.Container.Configure(Action 1.IsThis(T obj) in c:\BuildAgent\work\767273992e840853\src\StructureMap\Configuration\DSL\Expressions\InstanceExpression.cs:line 223 at StructureMap.Configuration.DSL.Expressions.CreatePluginFamilyExpression 1 configure)中   C:\ BuildAgent \工作\ 767273992e840853的\ src \ StructureMap \ ObjectFactory.cs:行   385在Sample.Customer.CustomerSessionFactory..cctor()中   C:\ Sample_Customer \源\ Sample.Customer \ CustomerSessionFactory.cs:线   36

请告诉我为什么会收到此错误,我该如何解决?

0 个答案:

没有答案