System.UnauthorizedAccessException

  • Thread starter Thread starter Empi
  • Start date Start date
E

Empi

Hi,

When loading a project, I get hundreads of "A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll".

It is generated when the form is loading (before form_load is executed).

The software is working fine.

I think it has to do something with loading my images (I have lots of picture boxes in it).

Any idea where to start?



Thanks.
 
The Resource manager throws these first chance exceptions when searching for
the correct resource file. At a previous contract we reduced these
exceptions (MS appears to be using flow through exception management for the
resource manager) by caching the images needed and then retrieving them
through the image cache class.

Rick D.
Contractor
 
Back
Top