Starting a new project these days, the problem with the Abstractdalfactory reflection instance is that the load assembly succeeds, but the create instance is null.
The reflected assembly name and namespace are s2s. Dal,
At first I was wondering if there was a point in the middle. Question, in turn think impossible, because I autofac rely on inject S2s.bll object when, in the middle also some point.
The first night was debugged for a few hours, and after a few hours of debugging tonight, I finally decided to recreate a Dal assembly, named S2s_dal.
Sure enough, the problem is solved.
According to the situation, it is. NETFramework's judgment was affected, and I guess AUTOFAC automatically identified the middle for us.
The conclusion remains to be verified.
As for why there is no full dependency injection, because I configured both layers with dependency injection failure, still in the study.
About C # reflection Assembly.Load (). CreateInstance () No error, return object is empty