The Heretic Mansion Forum

The official forum for the The Heretic Mansion Fusion Chart application

You are not logged in.

#1 2008-07-13 17:31:08

rothrin
New member
Registered: 2008-07-13
Posts: 1

[SOLVED] Unhandled Exception Prevents loading on Vista x64

When trying to start Heretic Mansion I get this every time:

Code:

An unhandled exception was caught with the message:
Could not load file or assembly 'System.Data.SQLite, Version=1.0.43.0,
Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT:0x80131040)
at Heretic_Mansion.MainForm.populateStatusBar()
  at Heretic_Mansion.MainForm..ctor()
  at Heretic_Mansion.MainForm.Main(String[] args)

OS is Vista x64. Yes the dll is in the same directory. UAC is off. Tried using the x64 version of the DLL but no go.

Thanks.

Offline

#2 2008-07-22 12:19:03

Saleh
HM Creator
Registered: 2007-06-19
Posts: 35
Website

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

Sorry for late reply.
I will look into that and see how to fix it.


We don't need a reason to help people. - Zidane [FF9]

Offline

#3 2008-12-13 07:51:32

Zarrion
Guest

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

Saleh wrote:

Sorry for late reply.
I will look into that and see how to fix it.

Any updates to this issue? I'm running into it as well. windows ultimate X64. .net framework 2 and 3.5 installed.

#4 2008-12-21 08:35:52

Saleh
HM Creator
Registered: 2007-06-19
Posts: 35
Website

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

The problem is that I don't have Vista x64. I only have x32 and it works fine on it.
I am really sorry I can't do anything about at the moment.


We don't need a reason to help people. - Zidane [FF9]

Offline

#5 2009-05-01 02:12:28

Jordan
Guest

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

I believe the problem stems from the fact that the sqlite dll is just a wrapper for an unmanaged 32 bit dll.

So an exception is thrown on 64 bit platforms when the unmanaged 32bit library is loaded...I'm not sure how much you care about the cause, if you want to know let me know.

However, if I'm right, the easy fix is to force x64 platforms to use the 32 bit library.  You can do that by changing the target platform (maybe it's CPU in visual studio, it's been a while since I've used it) to 32 bit instead of any cpu in the project setting in visual studio.

On a side note, if you need a guinea pig I'm running x64 and I'd be happy to test for you.

#6 2009-05-05 14:04:24

Saleh
HM Creator
Registered: 2007-06-19
Posts: 35
Website

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

Thank you very much. I am not a progamming junky so I wouldn't know (strange coming from me, huh?)
If it was as simple as you are saying, I'd be happy to try what you suggested.
Problem is, however, I have to dig up the source code and install SharpDevelop again (I don't use Visual Studio) since I formatted my laptop.

Anyway, I will try your suggestion and send you the file soon. At least I have enough reason to release a new version with the patched database now tongue


We don't need a reason to help people. - Zidane [FF9]

Offline

#7 2009-05-28 18:43:04

Saleh
HM Creator
Registered: 2007-06-19
Posts: 35
Website

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

I've released a new version and set the CPU to x32. Please let me if it works now.

Edit: After contacting Jordan, it seems that it works now under x64 Vista. Thanks Jordan smile


We don't need a reason to help people. - Zidane [FF9]

Offline

#8 2010-05-05 00:19:11

andrew
Guest

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

hi there the new version does not work on vista premium which i have. Do u have any suggestions

or van you tell me which demons to use to get the first 3 foul demons, the harlot and the tiger Holy starts with a B i think the white tiger

#9 2010-05-05 21:18:27

Saleh
HM Creator
Registered: 2007-06-19
Posts: 35
Website

Re: [SOLVED] Unhandled Exception Prevents loading on Vista x64

Do you get any error messages?


We don't need a reason to help people. - Zidane [FF9]

Offline

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson