Autofac - Make sure that the controller has a parameterless public constructor

后端 未结 6 1215
情歌与酒
情歌与酒 2021-02-07 04:28

I know it\'s been asked and answered before - the reason I\'m asking is because (I think) I tried all suggested solutions to this problem but still can\'t resolve it.

I

6条回答
  •  遥遥无期
    2021-02-07 05:14

    Open you ServiceModule File

    Register the Interface and service name those are mentioned in controller.

    Example are as below:-

    builder.RegisterType().As();

提交回复
热议问题