[Mono-list] mod-mono bad crashing, here is the squirrel !
robertj at gmx.net
Wed Sep 26 12:01:55 EDT 2007
Lorenzo Viola wrote:
>> It would be really nice, if you would try to find out why the line
>> idbCommBuild.ConflictOption = ConflictOption.OverwriteChanges;
>> is crashing MySqlClient, respectively Mono.
> I compile with mcs :
> mcs mysql.crash.cs -r:MySql.Data.dll -r:System.Data
> mysql.crash.cs(19,39): error CS0103: The name `ConflictOption' does not
> exist in the current context
> mysql.crash.cs(19,9): error CS0117:
> `MySql.Data.MySqlClient.MySqlCommandBuilder' does not contain a
> definition for `ConflictOption'
> /root/MySql.Data.dll (Location of the symbol related to previous error)
> Compilation failed: 2 error(s), 0 warnings
That's not a crash. ConflictOption is a .NET 2.0 feature but you're
compiling with mcs, targeting the 1.1 runtime. Gmcs is the proper
Since mod_mono defaults to 1.1, it first has to be configured for 2.0.
More information about the Mono-list