Either:
1. Resource designer.cs connection with your web.config file is not correctly setup OR
2. Designer file name has an extra dot
Try the following:
1) Create Resource
.resx
file under any folder
2) set
CustomTools = PublicResXFileCodeGenerator
and
Build
Action = Embedded
Resource in Resource.resx file property.
3) Now create the different language files like below,
Resources.en-US.resx
Resources.nl-NL.resx etc
4)If MVC, in your MVC Model refer this namespace as project folder
5) change the one of the property as below (example)
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MMM/yyyy}"), Display(Name = "dtMovinDate",ResourceType = typeof(Resources.Resource))]
public DateTime dtMovinDate { get; set; }
6) In config file add this under System.web
<globalization enableClientBasedCulture="true" culture="en-US" uiCulture="en-US" />
7) rebuild the project and test it.
Similar discussion, where it is referenced from:
c# - designer resx file remains empty - Stack Overflow[
^]
If above does not work, try if it
has filename issue[
^]. As mentioned there, to fix this you simply need to remove the dot from the resource filename, i.e. rename Diag.Gps.resx to DiagGps.resx.
Additional Resource:
Create resource files for .NET apps | Microsoft Docs[
^]