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)
-
0
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 ?
-
0
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.
-
0
Can you provide the requested namespace ?
-
0
CurrentDomainAssemblyFinder is defined Abp.Reflection. I did not shared it since VS should find it.
-
0
Done !! ... thx a lot u save my life.