Last post Mar 13, 2009 10:55 AM by mkmcshane
Feb 24, 2009 07:52 PM|mkmcshane|LINK
I built a C# Web application using Visual Web Developer Express 2005. Well I need to support multiple languages (at least English and French, possibly more) so I added 2 resource files to translate some of my controls. My problem is I need to embed the resource
files into my project. How do I do this in VWD 2005 Express?
When I try to run my application it throws an Exception: MissingManifestResourceException for the specific culture or the neutral culture. Make sure the Resource-fr.resources was correctly embedded or linked into Assembly at compile time. I dont see any
Build Action Properties when I right click on my resource files.
How do I embed these resources into my Project?
Feb 25, 2009 09:41 PM|Nai-Dong Jin - MSFT|LINK
From your description, it seems that you want to creaet resource file in Visual web developer express, right?
I'm not sure how you produce the resource file, since "generate resource file" in unavaiable in Visual web developer. Generally, you can try the following practice.
To generate a global resource file in Visual Web Developer
In Solution Explorer, right-click the name of the Web site, click Add New Item, and then click Assembly Resource File.
Visual Web Developer asks you if you want to place the file in the App_GlobalResources folder, and offers to create the folder.
Type values for each resource that you need in your application, and then save the file.
If the latest resource changes are not displayed, refresh Design view by switching to Source view and then switching back to Design view.
To create resource files for additional languages, copy the file in Solution Explorer or in Windows Explorer, and then rename it using one of the following patterns:
For more information, see:
Feb 26, 2009 03:39 PM|mkmcshane|LINK
One problem I see is I can add a New Item, I then select Resource File but there is nothing on this dialog box to click Assembly Resource File. I have 2 resource files in my App_GlobalResources folder but no way to embed it into the Assembly or reference
it using the ResourceManager object below: The code below is where the Exception gets thrown about MissingManifestException.
lblCustomerNumber.Text = rm.GetString(
lblInvoiceStartDate.Text = rm.GetString(
Mar 13, 2009 10:55 AM|mkmcshane|LINK