Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 15th, 2007, 2:23 AM   #1
JO90
Newbie
 
Join Date: Nov 2007
Posts: 16
Rep Power: 0 JO90 is on a distinguished road
Cool Global Application in different Languages

I want to write a "Global application", with strings that show on the webForm, according to the Culture of the user. {country they belong to}
I created a Web site.[Called 'KOP'] , I added a web Form.[called 'ZX.aspx']
I added a TextBox called 'TB1'.
I added a .resx[file] called APP.resx
I added another one called APP.en-US.resx [with strings in English]
I added another one called APP.it-IT [with strings in Italian]

I added 1 string in the GRID[of APP.resx] THAT SHOWS. [(NAME=)JO (value=)Bravo]
I added 1 string in the GRID[of APP.en-US.resx] THAT SHOWS. [(NAME=)JO (value=)INTELLIGENT]
I added 1 string in the GRID[of APP.it-IT.resx] THAT SHOWS. [(NAME=)JO (value=)Intelligente]




Then I wrote this code inside the PageLoad of my ZX.aspx[ [webForm]:

Dim QQ As ResourceManager = New ResourceManager("KOP.APP", GetType(ZX).Assembly)
TB1.Text = QQ.GetString("JO")





Now , when I run the WebForm a RunTime ERROR says:
"
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "CULTUREInfoClass.AppStrings.resources" was correctly embedded or linked into assembly "App_Web_b1eu8ty0" at compile time, or that all the satellite assemblies required are loadable and fully signed. "




What shall I do ?


I think there is No mistake in my procedure but the RunTime cannot find 'JO' [string].


EXPERTS of Globalization & localization
HELP HELP.
JO90 is offline   Reply With Quote
Old Nov 15th, 2007, 8:45 PM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
Re: Global Application in different Languages

What version of ASP.NET are you using? The resource model changed a lot from 1.1 to 2.0 (for one thing, resource managers aren't used anymore). If you're using 2.0, the links on this page might help.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Nov 16th, 2007, 6:13 AM   #3
JO90
Newbie
 
Join Date: Nov 2007
Posts: 16
Rep Power: 0 JO90 is on a distinguished road
Cool Re: Global Application in different Languages

Quote:
Originally Posted by Jimbo View Post
What version of ASP.NET are you using? The resource model changed a lot from 1.1 to 2.0 (for one thing, resource managers aren't used anymore). If you're using 2.0, the links on this page might help.

Thanks .....BUT
I have followed the steps suggested by your link....and it seems that my resourceFILEs are not embedded in the main assembly.

What shall I do to correctly embed resourceFiles in a web Site ?
It says just put them in the App_GlobalResources Folder.
I already DID......what is missing then ? [CLR cannot find them , it says :
"System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "z_GL.JO.resources" was correctly embedded or linked into assembly "App_Web_dbrakfgx" at compile time, or that all the satellite assemblies required are loadable and
fully signed."
]





Apart from putting resources in APP_GlobalResources Folder.....what shall I do ?



I am using Visual Studio 2005 and .NETframework 2.0.

Last edited by JO90; Nov 16th, 2007 at 6:16 AM. Reason: GO
JO90 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I bother learning new languages? Druid Coder's Corner Lounge 6 Mar 30th, 2007 3:50 AM
Functional Programming Languages ZenOswyn Coder's Corner Lounge 7 Dec 3rd, 2006 3:05 PM
creating an application that stands between the browser and the serve ronias Visual Basic 5 Oct 30th, 2005 4:22 PM
how many types of languages are there? linuxpimp20 Other Programming Languages 1 Sep 7th, 2005 4:53 PM
"Not Responding" Message in Windows Form Application G_Zola C# 1 Apr 29th, 2005 10:15 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC