in my solution I have a project Web
, which contains all the pages. I have resource file in project ProjectResources
which is named MyResources.resx (and another one MyResources.de.resx)
On all my pages in the HTML code I'm using the inline expression Resource to obtain the strings from the resources like this:
ErrorMessage="<%$ Resources: ProjectResources.MyResources, PasswordConfirmationFailed %>"
When I open the page, I have the parse error
Parser Error Message: The resource object with key 'PasswordConfirmationFailed' was not found.
On MSDN
I have found this example:
Text="<%$ Resources: Financial, Currency %>" />
And a comment below:
This code reads the following value from a resource file named Financial.resx in the App_GlobalResources directory.
I guess it cannot find my resource file somehow. I'm pretty sure this is very stupid but I cannot resolve it...
p:s: I've made the changes using the expression with regex on all pages simulationesly and it's not working for every page, not just for one
I found the answer HERE
You cannot use the Resource expression when referencing .resx file in another assembly.