Unity: The type LogWriter cannot be constructed

后端 未结 5 623
时光取名叫无心
时光取名叫无心 2020-12-20 20:06

For the following \"project\" I am getting a very annoying and inexplicable error when resolving Unity for DI.

InvalidOperationException - The type Lo

5条回答
  •  时光说笑
    2020-12-20 21:10

    You need to add the Enterprise Library extension to your container. Without it, the container doesn't read the config file and therefore doesn't know how to create Entlib objects, like the LogWriter.

提交回复
热议问题