resources.GetObject thorows excpetions

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

Hi,

I've encountered a bug with the .net when using the resources.GetObject
command generated by the designer.
I've created a new project with an picture control, and assign it a bitmap.

When I've set in the menu options Debug->Exceptions: Select Common Language
Runtime Exceptions-> check both the 'Break into debugger' and then run the
project I got these exceptions:

1.FileNotFound exception after the system call:
mscorlib.dll!System.Reflection.Assembly.InternalGetSatelliteAssembly(System.Globalization.CultureInfo
culture = {System.Globalization.CultureInfo}, System.Version version =
{System.Version}, bool throwOnFileNotFound = true) + 0x68 bytes

2.UnauthorizedAccessException after the system call:
mscorlib.dll!System.IO.MemoryStream.GetBuffer() + 0xe bytes

Although I get these exceptions, the application can continue and run
properly when I choose to continue on the exception.

Any ideas on this problem??

Tomer.
 
I have seen the same issue, related to trying to load an Icon from the
resource bundle. I haven't gotten around to trying to fix it yet, but
I was going to try adding some security attributes and strong names to
try to get around the unauth access.
 
So this is an open issue on the compact framework? Is there no reference on
it from the microsoft dev team?

Tomer.
 
_I had a similar problem -- actually, more similar to Damon's post on this
topic -- and setting the Connectivity options on the emulator got me through.
I also set permissions on the default web page directory, granting access to
aspnet_net, Network Service, and Service.
 
Back
Top