Crash on Options/Preferences and Scan/Options (workaround)

uspider7

11-03-2010 04:11:33

Hello, glad to see a new version and the conversion to C# hopefully you will get some help from the community on fixing bugs/creating new features.

Just wanted to post my experience in case someone was having a similar issue and potentially have it fixed for the next release.

Every time I clicked on Options -> Preferences or the Options button under the Scan tab I would receive;

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

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'SourceGrid.GridVirtual' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The system cannot find the file specified.
File name: 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821'
at SourceGrid.GridVirtual..cctor()


I could tell that I was missing a file (log4net), just didn't know how to go about getting it. Finally decided to download the source code, build it and there it was the log4net.dll file that it was complaining about, then I just copied it to my production machine and voila I can now access the preferences and options screens.

Hope this helps anyone having a similar issue.

later

sstteevvee

11-03-2010 10:14:22

Thanks for figuring this out, uspider7. I missed that dll in the installation package. I've rebuilt and re-uploaded the installer with it, so things should be ok from now on. Anyone with this problem, re-download the 2.2.0a9 (or later) installer from here.

anotherkid

11-03-2010 17:46:37

I have installed the new version of 2.09 on top of my previous installation of 2.09.
However I still have the error message when I try to access the options (whether from the button on the scan page or from the menubar):

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

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'SourceGrid.GridVirtual' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The system cannot find the file specified.
File name: 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821'
at SourceGrid.GridVirtual..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

--- End of inner exception stack trace ---
at SourceGrid.GridVirtual..ctor()
at SourceGrid.Grid..ctor()
at TVRename.Preferences.InitializeComponent()
at TVRename.Preferences..ctor(TVDoc doc, Boolean goToScanOpts)
at TVRename.UI.DoPrefs(Boolean scanOptions)
at TVRename.UI.preferencesToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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 **************


Otherwise everything seems to be working fine

sstteevvee

11-03-2010 17:59:29

Can you look in "C:\Program Files\TVRename" and see if log4net.dll is there?

If it isn't, it should have been installed by the new installer (which I have just double checked here - it does have it). Possibly the old installer exe has been cached somewhere.

You can grab the DLL from here, and put it in that folder with the EXE and other DLLs.

anotherkid

12-03-2010 08:09:33

Can you look in "C:\Program Files\TVRename" and see if log4net.dll is there?
Checked the directory and the file was not there.

If it isn't, it should have been installed by the new installer (which I have just double checked here - it does have it). Possibly the old installer exe has been cached somewhere.
I have cleared my browser cache and downloaded the new installer again - run it and checked the directory: still no log4net.dll

You can grab the DLL from here, and put it in that folder with the EXE and other DLLs.
Downloaded it from here, put it into the directory - everything works now :D

sstteevvee

12-03-2010 15:20:56

Its possible that it was cached further upstream, e.g. by your ISP. The lesson for me is to not re-upload an installer with exactly the same filename. Good to hear it is now working.