ASP.NET - How to get assembly from virtual path in custom IResourceProvider implementation
I am developing my own local resource provider implementation that needs to provide resource values from resources located in the App_LocalResources folders, but the resources need to be compiled inline. This way, no resx files will be in the web application folder, which by default expects LocalResXResourceProvider.
The problem is that I need to get an assembly with embedded resources from the virtual path and I can't figure out which class ASP.NET is using to translate the virtual path into the appropriate assembly. I've searched decompiled sources for LocalResXResourceProvider and BuildManager, but all things are internal. I was unable to get the assembly even with LocalResXResourceProvider.GetLocalResourceAssembly () via reflection - it just returns null when I deployed the app to clean up the folder without resx files. It works when resx files are present though ...
a source to share
No one has answered this question yet
See similar questions:
or similar: