Error in ASP.NET 5 application: System.IO.FileNotFoundException Could not find file 'CustomLibrary.resources' -


i referencing standard .net 4.5 library asp.net 5 mvc 6 project. code in library works .net 4.6 application, when use mvc 6 project shows error:

system.io.filenotfoundexception not find file 'customlibrary.resources'. 

the reference library strings embeded resx file.

the stack trace error is:

at system.reflection.runtimeassembly.internalgetsatelliteassembly(string name, cultureinfo culture, version version, boolean throwonfilenotfound, stackcrawlmark& stackmark) @ system.resources.manifestbasedresourcegroveler.getsatelliteassembly(cultureinfo lookforculture, stackcrawlmark& stackmark) @ system.resources.manifestbasedresourcegroveler.grovelforresourceset(cultureinfo culture, dictionary`2 localresourcesets, boolean tryparents, boolean createifnotexists, stackcrawlmark& stackmark) @ system.resources.resourcemanager.internalgetresourceset(cultureinfo requestedculture, boolean createifnotexists, boolean tryparents, stackcrawlmark& stackmark) @ system.resources.resourcemanager.internalgetresourceset(cultureinfo culture, boolean createifnotexists, boolean tryparents) @ system.resources.resourcemanager.getstring(string name, cultureinfo culture) 

any idea how resolve ?

a workaround used fix similar issue remove localization support adding startup.cs:

var localizationoptions = new requestlocalizationoptions() { supportedcultures = new list<cultureinfo> { new cultureinfo("") }, supporteduicultures = new list<cultureinfo> { new cultureinfo("") } }; var invariantculture = new requestculture(new cultureinfo(""), new  cultureinfo("")); app.userequestlocalization(localizationoptions, invariantculture); 

this based on solution suggested @ https://github.com/aspnet/entityframework/issues/4422


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -