Forms not loading in the default language

D

David Thielen

Hi;

I have a C# AddIn (I extensibility, not VSTO) where Word loads a shim
that then loads my app. We are having the following problem with it
displaying the localized forms.

1) When we run on any programmers system from Visual Studio it all
works fine - no problems.

2) When we install for end-user use, it half works.

2a) We have a file Resources.resx, Resources.Designer.cs,
Resources.de.resx, (also .hu.resx & .ru.resx). This is a VS 2008
generated file where it calls ResourceManager both to setup the class
and in the static string properties it creates for each localized
string.

This works in all cases. Because this is working, the file
<root>\de\AutoTag2003.resources.dll (to go with
<root>\AutoTag2003.dll) must be loaded ok as we are getting these
strings.

2b) We also have each form localized. These are also in
<root>\de\AutoTag2003.resources.dll. When running as the end-user
install the forms are still in English. It is not using the translated
forms.

I have the logfusvw output below for loading the file. It all looks
correct. So I'm thinking that there is some setting needed to tell
Windows to use the localized resources that I am not calling or
setting.

Any ideas? Is there some call needed to tell Windows or Word or .NET
to use the default culture?

thanks - dave

*** Assembly Binder Log Entry (2/21/2009 @ 5:40:58 PM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Program Files\Microsoft
Office\OFFICE11\WINWORD.EXE
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = THIELEN\david
LOG: DisplayName = AutoTag2003.resources, Version=7.1.13.1,
Culture=de, PublicKeyToken=267ad24bfdc007e1
(Fully-specified)
LOG: Appbase = file:///C:/Program Files/Windward Studios/AutoTag/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = WINWORD.EXE
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: AutoTag2003.resources, Version=7.1.13.1,
Culture=de, PublicKeyToken=267ad24bfdc007e1
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files/Windward
Studios/AutoTag/de/AutoTag2003.resources.DLL.
LOG: Assembly download was successful. Attempting setup of file:
C:\Program Files\Windward Studios\AutoTag\de\AutoTag2003.resources.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: AutoTag2003.resources, Version=7.1.13.1,
Culture=de, PublicKeyToken=267ad24bfdc007e1
LOG: Binding succeeds. Returns assembly from C:\Program Files\Windward
Studios\AutoTag\de\AutoTag2003.resources.dll.
LOG: Assembly is loaded in default load context.


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top