HEM/OM startup: The type initializer for 'Scanner.Form1' threw an exception
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    37

    Default [RESOLVED]The type initializer for 'Scanner.Form1' threw an exception

    RESOLVED. NOT AN OUTSTANDING ISSUE!

    The remainder of this post is purely for archival purposes.

    ###########################################

    I reverted my Windows config and reverted versions of HEM. Therefore I was running 1.11.01b which has this problem but thought I was running 1.12!


    ----
    I get this error on startup, then the startup splash screen locks up. I can leave it running for an hour or more with the "Holdem Manager 1.11.01b/HOLD'EM MANAGER/Initializing Database.../Professional Holdem+Omaha Version" splash screen stuck on the screen.

    The full error output is at the bottom of this post.

    Short chronology:
    • My comp crashed with motherboard problems, then I got it back clean
    • I reinstalled HEM and used my previous license.
    • It worked from Saturday to about Monday
    • I tried to restore my HEM/OM db from a Postgres backup
    • Running off the restored db, I got this error.
    • So I changed the name, restored the small two-day db to db:Holdemmanager, but still got this error
    • I uninstalled, reinstalled version *****, and switched it to my big database, now called holdemmanager2
    • It worked the first time I tried it.
    • Now it gets this error on startup again.


    [quote=complete error output]

    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 'Scanner.Form1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Scanner.Global' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\RVG Software\Holdem Manager\FishFinder.txt' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    at System.IO.StreamWriter.CreateFile(String path, Boolean append)
    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
    at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
    at Scanner.Log.ClearLog()
    at Scanner.Log..ctor(String name)
    at Scanner.Global..cctor()
    --- End of inner exception stack trace ---
    at Scanner.Form1..cctor()
    --- End of inner exception stack trace ---
    at Scanner.Form1.get_Instance()
    at h.a()
    at h..ctor(co A_0)
    at co.a(Object A_0, EventArgs A_1)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndPr oc(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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    HoldemManager
    Assembly Version: 1.10.0.5
    Win32 Version: 1.10.0.5
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/HoldemManager.exe
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    DevComponents.DotNetBar2
    Assembly Version: 8.3.0.0
    Win32 Version: 8.3.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/DevComponents.DotNetBar2.DLL
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    DeployLX.Licensing.v3
    Assembly Version: 3.2.2000.0
    Win32 Version: 3.2.2000.3813
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/DeployLX.Licensing.v3.DLL
    ----------------------------------------
    System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    HEMGUI
    Assembly Version: 1.0.9.118
    Win32 Version: 1.0.9.118
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/HEMGUI.DLL
    ----------------------------------------
    WindowsFormsIntegration
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.4902 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsFormsIntegration/3.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
    ----------------------------------------
    LeakBuster2.5
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/LeakBuster2.5.DLL
    ----------------------------------------
    Softelvdm.SftTreeNET
    Assembly Version: 2.0.13.0
    Win32 Version: 2.0.13.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Softelvdm.SftTreeNET.DLL
    ----------------------------------------
    Softelvdm.Controls
    Assembly Version: 1.0.0.17
    Win32 Version: 1.0.0.17
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Softelvdm.Controls.DLL
    ----------------------------------------
    Npgsql
    Assembly Version: 2.0.6.0
    Win32 Version: 2.0.6.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Npgsql.DLL
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    Mono.Security
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/RVG%20Software/Holdem%20Manager/Mono.Security.DLL
    ----------------------------------------

    ************** 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.
    Last edited by AKQJ10; 06-16-2010 at 11:29 PM.

  2. #2
    Senior Member _Loki_'s Avatar
    Join Date
    Jul 2009
    Location
    B/ham UK
    Posts
    2,856

Similar Threads

  1. Scanner.Form1 problem occured?
    By La_Science in forum Manager General
    Replies: 2
    Last Post: 01-24-2010, 08:51 PM
  2. Error 'Scanner.Form1'
    By nangys in forum Manager General
    Replies: 2
    Last Post: 01-21-2010, 05:18 PM
  3. Scanner.Form1 error
    By Ace1247 in forum Manager General
    Replies: 1
    Last Post: 01-04-2010, 06:53 PM
  4. Replies: 1
    Last Post: 01-01-2010, 03:21 PM
  5. "Threw an execption
    By mittman84 in forum Manager General
    Replies: 2
    Last Post: 07-25-2009, 08:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •