473,395 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem using Windows Resource Localization Editor (WinRes.exe)

Hi Everyone,

I am having some difficulty in using the Windows Resource Localization
Editor (WinRes.exe) on several Visual Basic .NET forms (.resx files) in two
different projects. The editor gives an error when loading the .resx files.

When attempting to load a .resx file using WinRes under Visual Studio .NET
2003, the following error is displayed in the client area of the editor:

"An error occurred while loading the document. Fix the error, and then try
loading the document again. The error message follows: Object reference
not set to an instance of an object."

When attempting to load the same .resx file using WinRes under Visual Studio
2005, the following errors are displayed in the status area of the tool:

"Warning: Failed to load the type for component 'dsCustomer'.
Warning: Failed to load the type for component 'Titles1'.
Error - The data name 'dsCustomer' is invalid. Valid data names must be of
the form 'Component.Property'.
Error - The data name 'dsCustomer' is invalid. Valid data names must be of
the form 'Component.Property'.
Error - The data name 'Titles1' is invalid. Valid data names must be of the
form 'Component.Property'.
Error - The data name 'Titles1' is invalid. Valid data names must be of the
form 'Component.Property'."

The 'dsCustomer' and 'Titles1' are data sets (DataSet objects). It seems
that all forms that have data sets have this issue with the localization
editor.

Does anyone have an idea how to solve or work around this problem? I need a
solution using Visual Studio 2003, not VS 2005.

Thank You.

Nov 22 '05 #1
5 6685
Hi Bill,

What verison of VS.NET are these .resx files build from? As a general rule,
you should use the version of Winres.exe that was released with the .NET
Framework you are using to create the application. Here is a link for your
reference.

http://msdn2.microsoft.com/en-us/library/8bxdx003.aspx

If you still cannot open that file, could you attach an resx file that can
reproduce the error?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Hi Bill,

From the error message, it seems that the 'dsCustomer' reference is not
pointing to any valid object. As opening the resx file requires to open the
form file together, please do check if there is any error in the form file.
Try to rebuild the windows form project to see if there is any compile
error.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Hi Bill,

Thank you very much for your repro code. With this code, I did more
research and found it is a known issue in VS.NET. the DataSets are not
serialized correctly in localized Forms. In this case, I suggest you try to
contact Microsoft PSS for a workaround. Please check the following link for
the contact information:

http://support.microsoft.com/default...;OfferProPhone

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #4
Kevin,

Thanks for your feedback. Since Microsoft knows about this issue, I assume
they don't have to be reminded of it. I'm curious though that I could not
find anything in Knowledge Base about it.

I did some digging and found that 3rd party translation tools don't have the
same issue and actually present a cleaner mechanism for translation by not
exposing all of the resource properties. The other workaround is to
programmatically create the required DataSets and links to the forms --
assuming that there is no other issue with WinRes.

Bill
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Za**************@TK2MSFTNGXA02.phx.gbl...
Hi Bill,

Thank you very much for your repro code. With this code, I did more
research and found it is a known issue in VS.NET. the DataSets are not
serialized correctly in localized Forms. In this case, I suggest you try to
contact Microsoft PSS for a workaround. Please check the following link for
the contact information:

http://support.microsoft.com/default...;OfferProPhone

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Nov 22 '05 #5
Hi Bill,

Nice to hear that you have got a workaround. I'm sorry for the
inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi | last post by:
Hi, I have a C# form called "Form1" with namespace of "WindowsApp". The projec namespace is also"WindowsApp". I have also created a User control called "Seat" with namespace called "MyCar". Now...
0
by: Bill | last post by:
Hi Everyone, I am having some difficulty in using the Windows Resource Localization Editor (WinRes.exe) on several Visual Basic .NET forms (.resx files) in two different projects. The editor...
1
by: Buddy | last post by:
Hello, I need to know how can I generate a .resx file from code for different language culture. Basically the .resx file is in binary, is there anyway that I can generate a text file contains...
1
by: Ian | last post by:
Hi there, I need some help if anyone can jump in, i know its something easy but i am just going round in circles. I was following a tutorial here...
0
by: qh0st | last post by:
Hi all. I have a frustrating issue that I can't seem to figure out. EXPERTS please help me~! Deadline is coming up soon~! My task is to localize a winform application. The .Net Designer...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
3
by: Barry | last post by:
I have looked for this answer but no luck so far In VB 6 I could used a resource file to hold icons which I could then use throughout my program. I have not yet found out hw to do this in...
5
by: ma | last post by:
Hello, I am new in .NET and I am writing my first program in c++/CLI on MSVC 2005. I add a PictureBox to my form and then using its properties I change its image property to one image...
2
by: Dave Brown | last post by:
Hi there, Given an arbitrary ".resx" file (not ."resources"), does anybody know how I can identify that this file actually contains a Windows form (in code). Once identified, I then want to...
1
by: Claire | last post by:
Im writing a small application to allow some none techy people create localized string resources for our main application. So we can reuse modules each one has its own .resx resource file. So my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.