Compile errors

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

Compile errors

Postby Marko » Sun Aug 17, 2014 1:14 am

So I'm trying to compile the server for the first time (I have been using one-click or exe files to install a prebuilt server) - but I want to learn how to compile things correctly so I can eventually do some C# coding of extensions for the server. I'm using the latest version of SharpDevelop (4.4.1) to do the compile, although I also have VSpro2013 (which I tried earlier and it threw similar errors). The process I followed:

I grabbed the code using TortoiseSVN and then loaded the sln into SharpDevelop.
Changed the Build from debug to release and did a build, and got the following warning:

The primary reference "System.Data.SQLite" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0". (MSB3274)

This led to two identical Errors:

The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) (CS0234) - H:\DOLcode\DOLDatabase\Handlers\SQLiteObjectDatabase.cs:29,19

So, thinking I needed to change my target from .NET 4.0 to 4.5, I tried again, this time it completes the compile (with some trivial warnings - ie Storm not supported, a field is created but never used, etc.) but nothing will run. For example as soon as I try to run the DOLConfig.exe it throws the following error:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: dolconfig.exe
Problem Signature 02: 1.9.7.32289
Problem Signature 03: 53effdb2
Problem Signature 04: DOLConfig
Problem Signature 05: 1.9.7.32289
Problem Signature 06: 53effdb2
Problem Signature 07: 65
Problem Signature 08: b
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

And if I try to run the DOLServer.exe I get a similar error:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: dolserver.exe
Problem Signature 02: 1.9.7.32288
Problem Signature 03: 53effdb1
Problem Signature 04: DOLServer
Problem Signature 05: 1.9.7.32288
Problem Signature 06: 53effdb1
Problem Signature 07: e6
Problem Signature 08: 52
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Any Ideas? Do I need to compile against a different .NET Framework? Or use a different compiler? I'm hoping that it's just a trivial setting that I've missed in the compiler configuration? Thanks!
User avatar
Marko
DOL Novice
 
Posts: 80
Joined: Mon Jun 09, 2014 8:17 pm
Location: Rural Central Utah (Near Bryce Canyon)

Re: Compile errors

Postby Leodagan » Sun Aug 17, 2014 6:05 am

Double check that you installed .NET Framework 4.5 : http://www.microsoft.com/en-US/download ... x?id=30653

This revision was compiled and started with no troubles from a #Develop environment with .NET 4.5.
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: Compile errors

Postby Marko » Sun Aug 17, 2014 4:38 pm

Ok, did that - I've actually got .NET 4.5.2 installed. Still getting the same error, but ran it through Visual Studio's debugger and got a little bit more info. Looks like it's having trouble finding the DDL's in the lib folder? Just a guess. Looking up the error, Google implies it might be an issue that I'm compiling with a 64bit Win7 system?

Info from debugger:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in DOLConfig.exe

Additional information: Could not load file or assembly 'DOLDatabase, Version=1.9.7.17103, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Debug against DOLserver gets similar error:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in DOLServer.exe

Additional information: Could not load file or assembly 'GameServer, Version=1.9.7.17104, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
User avatar
Marko
DOL Novice
 
Posts: 80
Joined: Mon Jun 09, 2014 8:17 pm
Location: Rural Central Utah (Near Bryce Canyon)

Re: Compile errors

Postby Leodagan » Sun Aug 17, 2014 8:41 pm

Try finding an appropriate SQLite.DLL and copying it in the lib directory of DOL :

https://system.data.sqlite.org/index.ht ... loads.wiki

Or you can try to unmerge the changes from revision 3328, getting back to 3327 or trying to merge 3327 with HEAD without adding "SQLite related" code...

Could you check if you have an existing Sqlite.dll in your DOL lib directory ?

I though this "commit" was portable enough, but looks like it can be troublesome...

The compatibility should be set on x86 arch if you know what you're doing around there !
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: Compile errors

Postby Marko » Sun Aug 17, 2014 8:42 pm

Ok - so I moved all of the DLL files that were in the 'lib' directory up one directory level to the 'release' folder and now DOLConfig seems to be working. But the DOLServer.exe keeps crapping out on SQLite - I'm not using SQLite, I'm using MySQL. And DOLConfig is correctly connecting to my MySQL db, and I've saved the configuration (it loads back in properly after closing and re-opening DOLconfig). So I'm getting closer to fixing this, I just need to get DOLserver to quit looking for that abominable SQLite!
User avatar
Marko
DOL Novice
 
Posts: 80
Joined: Mon Jun 09, 2014 8:17 pm
Location: Rural Central Utah (Near Bryce Canyon)

Re: Compile errors

Postby Marko » Sun Aug 17, 2014 8:50 pm

Got it! I had a corrupt db, just re-loaded the SQL and it seems to be working! Whew! Thanks for your assistance, those hints were all I needed :D
User avatar
Marko
DOL Novice
 
Posts: 80
Joined: Mon Jun 09, 2014 8:17 pm
Location: Rural Central Utah (Near Bryce Canyon)

Re: Compile errors

Postby Leodagan » Mon Aug 18, 2014 6:51 am

DOLServer.exe will look for SQLite.DLL whatever you choose to use in your config ;)

The code is not modular enough to load the pre-requisite only when needed...
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest