|
embedding resources for globalization (complete frustration): msg#00081windows.devel.dotnet.web
Well, our team decided to go back to VS 2003 instead of deploying the project on 2005, the reasons are not part of this email. Our current problem is with 1.1 Framework. We have a .resX file for each web form on the project and would like to access each resource in it. The ResourceManager class would only work with .resources files and in order to access them, these files should be embedded into satellite assemblies. We followed the steps in http://www.codeproject.com/dotnet/Localization.asp Al.exe /t:lib /embed: MyApplication.en-GB.resources, /culture:en-GB /out:MyApplication.resources.dll and created a MyApplication.resources.dll for each culture. We previously converted the .resX files into .resources with resgen.exe. Resgen MyApplication.en-GB.resX In order to load the specific resource: Dim a As [Assembly] = [Assembly].Load("MyApplication") Dim rm As ResourceManager = New ResourceManager("searchUI", a) Dim str As String = rm.GetString("errorMessage", Thread.CurrentThread.CurrentUICulture) The assembly loads fine and the resource manager is instantiated correctly, however when we try to get the string with the particular resource, there's is an exception saying the resource cannot be located, to make sure the .resource file is embedded in the satellite assembly. Any ideas of where to start troubleshooting the error are more than welcome, I have generated the satellite assemblies three times now and honestly don't know why the resources aren't loaded at all. Thanks in advance, Lizet =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: FW: [DOTNET-WEB] working with a project on a remote web server: 00081, Brian Vallelunga |
|---|---|
| Next by Date: | Re: embedding resources for globalization (complete frustration): 00081, Mark Kucera |
| Previous by Thread: | FW: [DOTNET-WEB] working with a project on a remote web serveri: 00081, Alex Smotritsky |
| Next by Thread: | Re: embedding resources for globalization (complete frustration): 00081, Mark Kucera |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |