![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2007
Posts: 16
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
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> |
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Nov 2007
Posts: 16
Rep Power: 0
![]() |
Quote:
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 |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |