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

Could not load file or assembly 'msvcp120.dll' !!!!!! #542


User avatar
0
mrvithan created

I suddenly get this error "Could not load file or assembly 'msvcp120.dll' or one of its dependencies. The module was expected to contain an assembly manifest." at base.Application_Start(sender, e);

Any help ?


5 Answer(s)
  • User Avatar
    0
    mrvithan created

    Ok i got more detail....

    I am trying to use a HTML to PDF dll (<a class="postlink" href="http://www.nrecosite.com/pdf_generator_net.aspx">http://www.nrecosite.com/pdf_generator_net.aspx</a>), which run wkhtmltopdf execute file. And it auto install 2 files "msvcp120.dll" and another one into Web/Bin; which seems that the ABP loader can't load the DLL correctly. If i remove both DLL, the system run fine.

    Any suggestion ?

  • User Avatar
    0
    hikalkan created
    Support Team

    Please create an issue on Github, since this maybe a common problem of ABP's assembly finding logic.

    As a workaround, Add this code in your global.asax file by overriding Application_Start:

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

    Example:

    protected override void Application_Start(object sender, EventArgs e)
            {
                /* This line provides better startup performance for the application by disabling detailed assembly investigation.
                 * If you need deeper assembly investigation, remove it. */
                AbpBootstrapper.IocManager.RegisterIfNot<IAssemblyFinder, CurrentDomainAssemblyFinder>();
    
                AbpBootstrapper.IocManager.IocContainer
                    .AddFacility<LoggingFacility>(f => f.UseLog4Net()
                        .WithConfig("log4net.config")
                    );
                
                base.Application_Start(sender, e);
            }
        }
    

    Do not forget to call base.Application_Start, as shown above.

  • User Avatar
    0
    mrvithan created

    Can you provide the requested namespace ?

  • User Avatar
    0
    hikalkan created
    Support Team

    CurrentDomainAssemblyFinder is defined Abp.Reflection. I did not shared it since VS should find it.

  • User Avatar
    0
    mrvithan created

    Done !! ... thx a lot u save my life.