PictureBox in Resources, RESX Problem?

  • Thread starter Thread starter Ralf Heitmann
  • Start date Start date
R

Ralf Heitmann

Hi,

I have an Image (*.JPG) set to the Image property of a PictureBox that
resides in a Windows.Form object.
In debug builds everything works (nearly) fine when I call this form at
runtime on the target (WindowsCE.NET 4.10).
The only mystery is an UnauthorizedAccessException when loading the Bitmap
from the Resource (which is catched internally).

But on Release deployments on the same machine, I'm not able to load the
Bitmap from Resource. I'll get a TypeLoadException.
Any hints?

this.pictureBox1.Image =
((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));

<data name="pictureBox1.Image" type="System.Drawing.Bitmap,
System.CF.Drawing, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
mimetype="application/x-microsoft.net.object.bytearray.base64">

<value>

/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAQAEAAAALQAA/+4ADkFkb2JlAGTAAAAAAf/b
AEMA

CgcHBwgHCggICg4JCAkOEQ0KCg0RFBAQERAQFBMPERAQEQ8TExcXGRcXEx4eICAeHiwrKyssMTEx
MTEx

MTExMf/bAEMBCwkJCwwLDQsLDREODg4RFA4ODg4UFxAQERAQFx4WExMTExYeGx0ZGRkdGyEhHh4h
ISkp

KCkpMTExMTExMTExMf/AABEIAMgB9AMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQID
BAUG

BwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR
8CQz

YnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOE
hYaH

iImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp
6vHy

8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUE
BAAB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4nc/QKP51Sm8SzN/q4VT6
kn+W

KxaK3lja7+3b0RhHA4eP2L+rbL8mt379GVP90f8AxWarPe3cn3pnIPUAkD8hUNFYyq1JfFOT9WbR
pU4/

DCK9Ee6+Frz+2vA4DHfNAmTnk7k+bPzepVqzDnHfafqB+m4V5Raavq1lGY7K+uLWNuWSGV41P1CM
KP7X

1XOfttxn181//iq6KeLUVZxb/wA+phUwrk9Gl/l0Pdbo/a/DNpMPmktWCNjnpmI/c/CuenETRyRS
sq+Y

pQ7yoPzDH8W1q8vOva40LQNqV2YX+9EZ5Np+q7sVCmp6lH/q7ydP92Vx/I044yKTXK9W/wARSwsm
0+Za

JfgViCCQeo4NFBJJyeSeporjOsVWKsGU4ZTkH3Fd/wCIPidFqVwkltYvEsaFMtImW53Zx5TY/A15
/RVw

qSg7xdiZwjNWkrnSx+PddgmE9qyQyrna5DSHBBH3ZGZO/wDdrOu/Eut3k73E12wmlJZ3jVYiSepP
lKtZ

dFDq1G7uT+8SpQSsor7h81xPO5knkeVz1Z2LE49zTKKKgsKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigXooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigA
ooooAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKACiiigAooooAKKKKACiiigAooo
oAKK

KKACiiigAooooAKKKKACiiigAooooAKKKKACiiigooooAKKKKAP/9k=

</value>
 
The assembly that contains the form is deployed in the Runtime path of the
CompactFrameworkSDK and is called
by my Device application.
When putting the JPG in my application dll I cannot replicate the error.

The Exception is:

A first chance exception of type 'System.TypeLoadException' occurred in
mscorlib.dll
Additional information: System.CodeDom.MemberAttributes, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


Call Stack:


mscorlib.dll!System.Resources.ResourceReader.ReadResources() + 0x15e bytes

mscorlib.dll!System.Resources.ResourceReader.ResourceReader(System.IO.Stream
stream = {System.IO.MemoryStream}, System.Collections.Hashtable table =
{Count=0}) + 0x44 bytes

mscorlib.dll!System.Resources.RuntimeResourceSet.RuntimeResourceSet(System.I
O.Stream stream = {System.IO.MemoryStream}) + 0x28 bytes

mscorlib.dll!System.Resources.DefaultResourceSetFactory._doCreateResourceSet
(System.IO.Stream stream = {System.IO.MemoryStream}) + 0x6 bytes

mscorlib.dll!System.Resources.ResourceSetFactory.CreateResourceSet(System.IO
..Stream stream = {System.IO.MemoryStream}) + 0x7 bytes

mscorlib.dll!System.Resources.ResourceManager.CreateResourceSet(System.IO.St
ream store = {System.IO.MemoryStream}) + 0x90 bytes

mscorlib.dll!System.Resources.ResourceManager.InternalGetResourceSet(System.
Globalization.CultureInfo culture = {System.Globalization.CultureInfo}, bool
createIfNotExists = true, bool tryParents = true) + 0x1ca bytes

mscorlib.dll!System.Resources.ResourceManager.InternalGetResourceSet(System.
Globalization.CultureInfo culture = {System.Globalization.CultureInfo}, bool
createIfNotExists = true, bool tryParents = true) + 0x147 bytes

mscorlib.dll!System.Resources.ResourceManager.InternalGetResourceSet(System.
Globalization.CultureInfo culture = {System.Globalization.CultureInfo}, bool
createIfNotExists = true, bool tryParents = true) + 0x147 bytes
mscorlib.dll!System.Resources.ResourceManager.GetObject(string name =
"pictureBox1.Image", System.Globalization.CultureInfo culture =
{System.Globalization.CultureInfo}) + 0x2a bytes
mscorlib.dll!System.Resources.ResourceManager.GetObject(string name =
"pictureBox1.Image") + 0x8 bytes

How can I find out the Type that forced the error. Is it the Image itself?
Why?

Ralf
 
Ralf,

Please check that the fully qualified names (assembly, type, version, etc.)
of the types in your .resx file match the types in the assemblies that you
run against.

Pavel Treskunov
.NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top