Groups | Blog | Home
all groups > dotnet internationalization > october 2006 >

dotnet internationalization : WinRes V2 Problem with DataSet On Form


James Hancock
10/2/2006 10:27:58 AM
Hey All, I'm trying to use WinRes to do localization into French from
English. When I open the resx file I get the following error:

Warning: Failed to load the type for component 'Details'.
Error - Failed to load the resource due to the following error:
System.NullReferenceException: Object reference not set to an instance of an
object.
at Microsoft.Tools.WinRes.ResourcesLoader.SetProperties(IResourceReader
resourceReader)
at Microsoft.Tools.WinRes.ResourcesLoader.BeginLoad(IDesignerLoaderHost
designerLoaderHost)

"Details" is a dataset on the form. I've made sure that winres.exe is in
the same directory as all of the dependancy DLLs because I was having
problems with that, and the base forms that everything inherits from load
just fine. It's just the DataSet issue that is causing it to stop before it
loads any of the child form's controls (most of the components loaded).

Anyone have any suggestions? Is there an updated WinRes somewhere that fixes
this? I've tried it with Vs.net 2005 and Vs.net 2005 SP1 and still get the
same problem. I've searched the net like crazy and can't find anything that
really solves the problem just people saying "ya, that sucks, it's a known
issue" without any resolution and I would have tghought that if there is a
resolution that it would be in SP1 of Vs.net 2005....

Any help would be greatly appreciated!
GarrMc NO[at]SPAM online.microsoft.com
10/17/2006 10:26:25 PM
I've seen a report similar to this one, though I don't know if a similar
same solution will apply.

This is the thread:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=416188&SiteID=1

--------------------
[quoted text, click to view]
microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.inter
nationalization
[quoted text, click to view]

Garrett McGowan [MSFT Developer International]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
James Hancock
10/18/2006 4:32:34 PM
Unfortunately this doesn't seem to work :<

Anyone have any ideas on how to localize a Winform with a data set on it and
use WinRes?

Thanks!

[quoted text, click to view]
aldod NO[at]SPAM online.microsoft.com (
11/22/2006 12:00:00 AM
Hi James, there must be something else. I have tried creating a Form with a DatagridView, a Dataset, a TableAdapter and aBindingSource and I get a warning on both the DataSet and the TableAdapter but I can
still open the form. (and my objects have German charachters in their names, so they are not like TableAdapter1 or so). I'm not sure I can help you more than this if I don't get to reproduce the problem.
One thing you could do, is to go to the Connect site and directly open a bug there <http://connect.microsoft.com/> - someone would look at it for sure.

Aldo

-- This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| From: "James Hancock" <~james@darwinproductions.net>
| |
| Unfortunately this doesn't seem to work :<
|
| Anyone have any ideas on how to localize a Winform with a data set on it and
| use WinRes?
|
| Thanks!
|
[quoted text, click to view]
| > I've seen a report similar to this one, though I don't know if a similar
| > same solution will apply.
| >
| > This is the thread:
| > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=416188&SiteID=1
| >
| > --------------------
| >>From: "James Hancock" <~james@darwinproductions.net>
| >>Subject: WinRes V2 Problem with DataSet On Form
| >>Date: Mon, 2 Oct 2006 10:27:58 -0400
| >>Newsgroups:
| > microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.inter
| > nationalization
| >>
| >>Hey All, I'm trying to use WinRes to do localization into French from
| >>English. When I open the resx file I get the following error:
| >>
| >>Warning: Failed to load the type for component 'Details'.
| >>Error - Failed to load the resource due to the following error:
| >>System.NullReferenceException: Object reference not set to an instance of
| > an
| >>object.
| >> at Microsoft.Tools.WinRes.ResourcesLoader.SetProperties(IResourceReader
| >>resourceReader)
| >> at Microsoft.Tools.WinRes.ResourcesLoader.BeginLoad(IDesignerLoaderHost
| >>designerLoaderHost)
| >>
| >>"Details" is a dataset on the form. I've made sure that winres.exe is in
| >>the same directory as all of the dependancy DLLs because I was having
| >>problems with that, and the base forms that everything inherits from load
| >>just fine. It's just the DataSet issue that is causing it to stop before
| > it
| >>loads any of the child form's controls (most of the components loaded).
| >>
| >>Anyone have any suggestions? Is there an updated WinRes somewhere that
| > fixes
| >>this? I've tried it with Vs.net 2005 and Vs.net 2005 SP1 and still get
| > the
| >>same problem. I've searched the net like crazy and can't find anything
| > that
| >>really solves the problem just people saying "ya, that sucks, it's a known
| >>issue" without any resolution and I would have tghought that if there is a
| >>resolution that it would be in SP1 of Vs.net 2005....
| >>
| >>Any help would be greatly appreciated!
| >>
| >>
| >
| > Garrett McGowan [MSFT Developer International]
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| > rights.
| > Use of included script samples are subject to the terms specified at
| > http://www.microsoft.com/info/cpyright.htm
| >
|
|

AddThis Social Bookmark Button