Unhandled exception error

Issue #22 closed
Barry Kramer created an issue

Unhandled exception error has occurred ... The file cannot be accessed by the system.

Details:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.ComponentModel.Win32Exception: The file cannot be accessed by the system at TAFactory.IconPack.IconExtractor.LoadLibrary(String fileName) at TAFactory.IconPack.IconHelper.ExtractIcon(String fileName, Int32 iconIndex) at TAFactory.IconPack.IconHelper.ExtractBestFitIcon(String fileName, Int32 iconIndex, Size desiredSize) at Browser_Chooser_2.ImageUtilities.GetICOFromFile(String aFile, Int32 aIndex, Boolean ErrorIconOnFail) at Browser_Chooser_2.ImageUtilities.GetImage(Browser& BrowserChoice, Boolean abDoScale) at Browser_Chooser_2.frmMain.InitializeMain() at Browser_Chooser_2.frmMain.frmMain_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies ** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


Browser Chooser 2 Assembly Version: 2.0.3.21514 Win32 Version: 2.0.3.21514 CodeBase: file:///K:/BK3/SOFTWARE/new%20software/Browser%20Chooser%202/Browser%20Chooser%202_beta.exe


System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll


System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.5420 built by: Win7SP1 CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


kjqyknpo Assembly Version: 2.0.3.21514 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


OSVersionInfo Assembly Version: 3.0.0.0 Win32 Version: 2.0.3.21514 CodeBase: file:///K:/BK3/SOFTWARE/new%20software/Browser%20Chooser%202/Browser%20Chooser%202_beta.exe


TAFactory.IconPack Assembly Version: 1.0.0.0 Unhandled exception has occurred in you application. If you click Continue the application will ignore the error and attempt to continue. If you click quit the applicaition will close immediately.

The file cannot be accessed by the system.

Win32 Version: 2.0.3.21514
CodeBase: file:///K:/BK3/SOFTWARE/new%20software/Browser%20Chooser%202/Browser%20Chooser%202_beta.exe

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

<configuration> <system.windows.forms jitDebugging="true" /> </configuration>

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

Comments (5)

  1. guy repo owner

    Sorry for the lateness on this one. Is this still an issue and are you using the latest version? Also, what AV do you have, it may be blocking the extraction of embedded files.

  2. guy repo owner

    I also wonder if it has something to do with the fact it's running on you K drive, which is probably a network drive.

  3. Barry Kramer reporter

    When I first saw this, I though it was scam or spam. I'm thinking:

    ? How in the hell does this joker know I have a K drive?

    Then I re-read the subject and vaguely recall sending you something when I looking for software to select different browsers on the fly. How many months ago was that? It took you this long to reply? Did you really expect your answer to be current?

    PickBrowser works fine for me.

  4. Barry Kramer reporter

    No longer an issue, as I settled in on something else, PickBrowser. I understand that responses to errors is not a critical for you ... but perhaps a more timely reply would help you obtain/retain users of browserchooser2.

  5. Log in to comment