vb.net - Could not find any resources appropriate for the specified culture or the neutral culture. -


i'm trying use resources .dll file, whatever can't working. spent hours researching, , realized there no way 'figure out' until gives me example.

my main project called test 1 rootname test_1
have simple form 1 textbox.

.dll file called classlibrary1 rootname classlibrary1
.dll resources.resx unchanged. added 1 string called test value asd.
i'm trying call string when loading form1 of test1.
-i have set resources.resx embedded resource.
-i added project & .dll reference enter code here
-i have set resources public.

   private sub form1_load(sender object, e eventargs) handles mybase.load 
    dim pathx string     pathx = "t:\classlibrary1.dll"      ' visual basic .net     ' gets reference same assembly      ' contains type creating resourcemanager.     dim myassembly system.reflection.assembly     myassembly = me.gettype.assembly      ' gets reference different assembly.     dim myotherassembly system.reflection.assembly     myotherassembly = system.reflection.assembly.loadfile(pathx)      ' creates resourcemanager original.     'dim mymanager new _        'system.resources.resourcemanager("resourcenamespace.myresources",       ' myassembly)      ' creates resourcemanager.     dim mymanager new _        system.resources.resourcemanager("classlibrary1.myresources",        myassembly)      dim mystring system.string     mystring = mymanager.getstring("test")      textbox1.text = mystring  end sub 

it throws out error @ mystring = mymanager.getstring("test")

 not find resources appropriate specified culture or neutral culture.  make sure "classlibrary1.resources.resources" correctly embedded or linked assembly "test 1" @ compile time, or satellite assemblies required loadable , signed. 

any appreciated. ~thanks


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -