PDA

View Full Version : unhandled exception error



wordup8801
03-28-2010, 02:47 PM
So I tried to open up HEM with my old version 1.09 something and got this error, then I updated to the newest beta version and got the same thing. It says:

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
The type initializer for 'Scanner.Form1' threw an exception.

Also a friend of mine said postgre might not be started, in the services menu it says "starting" but when I open the window for it it lists the status as stopped and when I try to start it manually it says: "Windows could not start the PostgreSQL Database Server 8.3 services on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion."

Anyway, I tried clicking continue and HEM just sits there and never actually opens. When I hit details it says the following:

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 'F:\Program Files\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 HoldemManager.frmMain3.h()
at HoldemManager.frmMain3..ctor(frmLoading LoadingForm)
at HoldemManager.frmLoading.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.3603 (GDR.050727-3600)
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:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/HoldemManager.exe
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/DevComponents.DotNetBar2.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3074 (QFE.050727-3000)
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.3053 (netfxsp.050727-3000)
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:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/DeployLX.Licensing.v3.DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3074 (QFE.050727-3000)
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.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
HEMGUI
Assembly Version: 1.0.9.105
Win32 Version: 1.0.9.105
CodeBase: file:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/HEMGUI.DLL
----------------------------------------
WindowsFormsIntegration
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1453 built by: NetFX
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsFormsIntegration/3.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
HoldemVision
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/HoldemVision.DLL
----------------------------------------
PresentationFramework
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1500 built by: QFE
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1453 built by: NetFX
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
PresentationCore
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1500 built by: QFE
CodeBase: file:///C:/Windows/assembly/GAC_32/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
LeakBuster2.5
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/LeakBuster2.5.DLL
----------------------------------------
Softelvdm.SftTreeNET
Assembly Version: 2.0.12.0
Win32 Version: 2.0.12.0
CodeBase: file:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/Softelvdm.SftTreeNET.DLL
----------------------------------------
Softelvdm.Controls
Assembly Version: 1.0.0.16
Win32 Version: 1.0.0.16
CodeBase: file:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/Softelvdm.Controls.DLL
----------------------------------------
Npgsql
Assembly Version: 2.0.6.0
Win32 Version: 2.0.6.0
CodeBase: file:///F:/Program%20Files/RVG%20Software/Holdem%20Manager/Npgsql.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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:///F:/Program%20Files/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.

Patvs
03-28-2010, 05:35 PM
For W7 and Vista you must set \holdem manager\dbcontrolpanel.exe, holdemmanager.exe and hmhud.exe are started as administrator. Run the windows explorer and navigate to your Holdemmanager installation directory. Right click the executables and select properties... then select "Run as admin" from the compatibility tab. If you have Vista and the checkboxes are greyed out and you can't select it, please turn UAC on, reboot, and then set the files to run as administrator.

Or turn off User Account Control completely and reboot.

wordup8801
03-28-2010, 06:20 PM
Hey thanks for your help. I did what you suggested but it's still giving me the same error.

morny
03-28-2010, 11:41 PM
Hi are you sure you followed those instructions they usually fix that issue?

please give HoldemManager Administrator rights:

1) Go to C:\Program Files\RVG Software\Holdem Manager (Program Files (x86) if you have the 64bit version)
2) Rightclick the HoldemManager.exe and choose "Properties".
3) Go to the Compatibility Tab and select "Run this program as an Administrator". if the option is grayed out then this is because youve UAC disabled, in which case enable UAC Disable User Account Control (UAC) the Easy Way on Win 7 or Vista - How-To Geek (http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/) and reboot the PC then do step 3 and then you can disable UAC again if you like.
4) Do the same for HMHud.exe and DBControlPanel.exe and hmimport.exe

thess12345
03-29-2010, 06:04 PM
Hey,

I am having the same problem. I have enabled Administration powers to everything that you have mentioned, and yet I still get the same response. Any help in this problem would be greatly appreciated...

wordup8801
03-29-2010, 07:08 PM
Yeah I double checked and they're all enabled to run as administrator. I think I may have accidentally jostled some of the postgre program files while poking around in my hard drive. If I uninstall postgre and reinstall it will it mess anything up? I heard it'll clear my database but I kind of want that because I have a really small harddrive and dont really need my hands from old limits.

netsrak
03-30-2010, 03:47 AM
The database is saved in the postgresql data folder.

You can try to preserve it when you install the same postgresql version again. FAQ - Hold'em Manager Poker Tracking Software :: Reinstall PostgreSQL Preserving Old Database (http://faq.holdemmanager.com/questions/71/Reinstall+PostgreSQL+Preserving+Old+Database)

If you don't need it, delete it and install a new postgresql

thess12345
03-31-2010, 01:40 PM
I have everything set to run as administrator and am still getting the same message. Is there anything else that may be causing this problem?

etant39
03-31-2010, 02:47 PM
I'm having this same problem. It was working fine yesterday and today my Postgres wasn't working. I've checked and everything is being run as administrator. and I reinstalled HEM and Postgres. I don't know what else to do. Please Help

morny
03-31-2010, 03:45 PM
Hi,

Please email me and we can do a teamviewer session, just download teamviewer from TeamViewer - Free Remote Access and Remote Desktop Sharing over the Internet (http://www.teamviewer.com) and let me know a suitable time GMT in advance. Teamviewer allows me to access your computer to fix the problem.

When we agree a suitable time you just need to send me the ID and password that Teamviewer creates to get access to your PC


support@holdemmanager.com

Thanks
Morny

gamoche
01-06-2011, 08:25 PM
I have the same problem and I have windows xp professional and dont have "Run this program as an Administrator" as an option in the properties menu. Its really hard to get your software to run, are you aware of this?

Patvs
01-06-2011, 09:17 PM
HoldemManager/PostgreSQL needs full administrator privileges. (since it's basically a program that runs on top of a database-server)

If a program blocks the server (firewall/User Account Control, etc) it can cause problems.

For XP. Make sure:
-1 you're updated to XP Service Pack 3
-2 Run a manual Windows Update and install all updates, including .net framework updates (those are NOT installed if you have auto-update turned on)
-3 Go to Control Panel--> Users--> check if your account has FULL administrator privileges.