Global Resource File asp.net
Asked Answered
E

1

0

Okay below image is explaining everything.

My Issue

i have also included the code for further explanation.

Thread.CurrentThread.CurrentCulture = New CultureInfo(Session("Lang").ToString())
Dim rm As ResourceManager = New ResourceManager("TodayTimesheet.App_GlobalResources.Lang", Assembly.GetExecutingAssembly())
Dim ci As CultureInfo = Thread.CurrentThread.CurrentCulture
btnSubmit.Text = rm.GetString("Add", ci)

Error message:

An exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll but was not handled in user code

Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "TodayTimesheet.App_GlobalResources.Lang.resources" was correctly embedded or linked into assembly "TodayTimesheet" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Equivalency answered 7/4, 2015 at 11:48 Comment(1)
see #2058941Hennahane
E
0

Nevermind ...

I have fixed the issue on my own by replacing the following line

 Dim rm As ResourceManager = New ResourceManager("TodayTimesheet.Lang", System.Reflection.Assembly.Load("TodayTimesheet"))
Equivalency answered 8/4, 2015 at 4:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.