Page 1 of 1

cannot install game

PostPosted: Sat Jun 28, 2008 8:04 am
by dmjd45
when I double click on freetrain.exe it gives me this error message:


The type initializer for 'freetrain.framework.MainWindow' threw an exception.
at freetrain.framework.MainWindow..ctor(String[] args, Boolean constructionMode)
at Driver.Driver.Main(String[] args)
The type initializer for 'freetrain.framework.ResourceUtil' threw an exception.
at freetrain.framework.ResourceUtil.loadSystemPicture(String name)
at freetrain.framework.MainWindow..cctor()
Retrieving the COM class factory for component with CLSID {E1211353-8E94-11D1-8808-00C04FC2C602} failed due to the following error: 80040154.
at org.kohsuke.directdraw.DirectDraw..ctor()
at freetrain.framework.ResourceUtil..cctor()

Re: cannot install game

PostPosted: Sat Jun 28, 2008 11:05 pm
by freegamer
Linux or Windows?

Re: cannot install game

PostPosted: Fri Jul 04, 2008 3:27 pm
by DjinNTonic
I am seeing this error in Vista.

Re: cannot install game

PostPosted: Mon Aug 11, 2008 1:06 pm
by Zephyris
I am getting the same error:
The type initializer for 'freetrain.framework.MainWindow' threw an exception.
at freetrain.framework.MainWindow..ctor(String[] args, Boolean constructionMode)
at Driver.Driver.run(String[] args) in c:\dev\freetrain\trunk\FreeTrain\tools\Driver\Driver.cs:line 38
at Driver.Driver.Main(String[] args) in c:\dev\freetrain\trunk\FreeTrain\tools\Driver\Driver.cs:line 26
The type initializer for 'freetrain.framework.ResourceUtil' threw an exception.
at freetrain.framework.ResourceUtil.loadSystemPicture(String name)
at freetrain.framework.MainWindow..cctor() in c:\dev\freetrain\trunk\FreeTrain\core\framework\MainWindow.cs:line 119
Retrieving the COM class factory for component with CLSID {E1211353-8E94-11D1-8808-00C04FC2C602} failed due to the following error: 80040154.
at org.kohsuke.directdraw.DirectDraw..ctor() in c:\dev\freetrain\trunk\FreeTrain\lib\DirectDraw.net\DirectDraw.cs:line 47
at freetrain.framework.ResourceUtil..cctor() in c:\dev\freetrain\trunk\FreeTrain\core\framework\ResourceUtil.cs:line 93


Running Vista Home Premium (32bit), service pack 1 not installed.

Game looks good though! I hope I can get it running, I would like to develop graphics for it :D

Re: cannot install game

PostPosted: Sat Nov 15, 2008 6:31 pm
by Adjutant
Zephyris wrote:I am getting the same error:
The type initializer for 'freetrain.framework.MainWindow' threw an exception.
at freetrain.framework.MainWindow..ctor(String[] args, Boolean constructionMode)
at Driver.Driver.run(String[] args) in c:\dev\freetrain\trunk\FreeTrain\tools\Driver\Driver.cs:line 38
at Driver.Driver.Main(String[] args) in c:\dev\freetrain\trunk\FreeTrain\tools\Driver\Driver.cs:line 26
The type initializer for 'freetrain.framework.ResourceUtil' threw an exception.
at freetrain.framework.ResourceUtil.loadSystemPicture(String name)
at freetrain.framework.MainWindow..cctor() in c:\dev\freetrain\trunk\FreeTrain\core\framework\MainWindow.cs:line 119
Retrieving the COM class factory for component with CLSID {E1211353-8E94-11D1-8808-00C04FC2C602} failed due to the following error: 80040154.
at org.kohsuke.directdraw.DirectDraw..ctor() in c:\dev\freetrain\trunk\FreeTrain\lib\DirectDraw.net\DirectDraw.cs:line 47
at freetrain.framework.ResourceUtil..cctor() in c:\dev\freetrain\trunk\FreeTrain\core\framework\ResourceUtil.cs:line 93


Running Vista Home Premium (32bit), service pack 1 not installed.

Game looks good though! I hope I can get it running, I would like to develop graphics for it :D


I have the exact same problem. Same error too. Does this mean the game is not compatible with Windows Vista? Am I missing something? The compatability mode doesn't really make this work either.

Re: cannot install game

PostPosted: Sat Nov 15, 2008 7:59 pm
by Adjutant
The wonders of google, should've thought of searching this before:

http://www.railforums.co.uk/showthread.php?p=141444