Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

No parameterless constructor defined for this object. #548


User avatar
0
mrvithan created

After i add

AbpBootstrapper.IocManager.RegisterIfNot<IAssemblyFinder, CurrentDomainAssemblyFinder>();

in Global.ascx. Seem that i get this error every time i restart my server on all my controller.

No parameterless constructor defined for this object.

I have to re-compile whole solution again and it run again.

Any suggestion ?


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    It's strange.. did you added it to Application_Start and called base.Application_Start as a last line? Also, can you check logs to see which modules are loaded when you first run?

  • User Avatar
    0
    mrvithan created

    Yes, i did.

    It happen to all controller i try to load. But now i remove the DLL and use different SDK (html2pdf) and i remove the additional code and everything run normal again.