Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problems with ResourceManager!! (multi-language system)

Reply
Thread Tools

problems with ResourceManager!! (multi-language system)

 
 
Ricardo Corsi
Guest
Posts: n/a
 
      12-20-2004
Hi,

I have a websystem (ASP.Net -VB) that uses a resourceManager to swicth
between 3 diferent languages.

Inside my network, My applicattion works very nice. But, when i try to run
outside my test network, it gives me a strange error , like this:

Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure "visual.res.resources" was
correctly embedded or linked into assembly "Visual". baseName: visual.res
locationInfo: <null> resource file name: visual.res.resources assembly:
Visual, Version=1.0.1812.37629, Culture=neutral, PublicKeyToken=null
here comes my class:

Dim idioma As Integer =
HttpContext.Current.Request.Cookies("VisualLanguag e").Item("Lingua")
Dim cultura As String
Select Case idioma
Case 1
cultura = "pt-BR"
Case 2
cultura = "es-ES"
Case 3
cultura = "en-US"
End Select
Try
Dim objRm As New ResourceManager("visual.res", ClasseDoWebForm)
Thread.CurrentThread.CurrentUICulture = New CultureInfo(cultura)
'("en-US")
Return objRm.GetString(Objeto)
Catch ex As Exception
Throw ex
End Try

So, somebody can help to know what´s wrong ?

thks@!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the web, charset problems and symbols problems Sak Na rede Ruby 0 01-30-2009 05:05 AM
Problems, problems for newbie Shelly ASP .Net 1 09-03-2007 02:10 AM
Problems compiling simple C++ code (also problems with std::string) Susan Baker C++ 2 06-26-2005 01:43 AM
Re: sound problems and modem problems Harold Potter Computer Support 5 12-04-2003 04:12 PM



Advertisments