Use Autofac with a WCF service using WAS

喜夏-厌秋 提交于 2019-12-06 13:31:50

According to the Autofac source, the exception is thrown if either a keyed resolution with the given string (from config) or a typed resolution using Type.GetType for the given string fails.

In your case the Type.GetType method probably returns null because you haven't specified a Type.AssemblyQualifiedName in the config.

Try getting typeof(MyService).AssemblyQualifiedName and insert that into the config.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!