[Mono-list] MySql.Data mcs compilation error

k1Ll5w1tcH garriths at gmail.com
Wed Jul 23 09:20:08 EDT 2008




Chris Howie-3 wrote:
> 
> On Wed, Jul 23, 2008 at 7:51 AM, k1Ll5w1tcH <garriths at gmail.com> wrote:
>> Howzit
>>
>> When compiling I receive the following error:
>> error CS2015: Source file `MySql.Data.dll' is a binary file and not a
>> text
>> file
>>
>> Please help???
> 
> It sounds like you are saying something like:
> 
> mcs source.cs MySql.Data.dll
> 
> instead of:
> 
> mcs source.cs -r:MySql.Data.dll
> 
> -- 
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

Thanks, I was missing the '-r:', but now I'm getting the following:



C:\>mcs "C:\Projects\ConUpdate\Program.cs" "C:\Projects\ConUpdate\Runner.cs"
"C:
\Projects\ConUpdate\MySQLConnect.cs" -r:System.Data.dll
-r:"C:\Projects\ConUpdat
e\MySQL.Data.dll"

** (E:\PROGRA~1\MONO-1~1.1\lib\mono\1.0\mcs.exe:2596): WARNING **: The class
Sys
tem.Data.Common.DbConnection could not be loaded, used in System.Data,
Version=2
.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Projects\ConUpdate\MySQLConnect.cs(12,9): error CS0246: The type or
namespace
 name `MySqlConnection' could not be found. Are you missing a using
directive or
 an assembly reference?
no implementation for interface method
System.Data.IDbDataAdapter::get_DeleteCom
mand() in class MySql.Data.MySqlClient.MySqlDataAdapter
METHOD add_RowUpdating(MySql.Data.MySqlClient.MySqlRowUpdatingEventHandler)
METHOD
remove_RowUpdating(MySql.Data.MySqlClient.MySqlRowUpdatingEventHandler)
METHOD add_RowUpdated(MySql.Data.MySqlClient.MySqlRowUpdatedEventHandler)
METHOD remove_RowUpdated(MySql.Data.MySqlClient.MySqlRowUpdatedEventHandler)
METHOD .ctor()

** (E:\PROGRA~1\MONO-1~1.1\lib\mono\1.0\mcs.exe:2596): WARNING **: The class
Sys
tem.Data.Common.DbCommand could not be loaded, used in System.Data,
Version=2.0.
0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Assembly.InternalGetType
(Sys
tem.Reflection.Module,string,bool,bool) <0x00004>
  at (wrapper managed-to-native) System.Reflection.Assembly.InternalGetType
(Sys
tem.Reflection.Module,string,bool,bool) <0xffffffff>
  at System.Reflection.Assembly.GetType (string,bool,bool) <0x00026>
  at System.Reflection.Assembly.GetType (string) <0x00014>
  at Mono.CSharp.RootNamespace.GetTypeInAssembly
(System.Reflection.Assembly,str
ing) <0x00015>
  at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection
(string,Mono.CSharp.Lo
cation) <0x00057>
  at Mono.CSharp.Namespace.LookupType (string,Mono.CSharp.Location)
<0x00102>
  at Mono.CSharp.Namespace.Lookup
(Mono.CSharp.DeclSpace,string,Mono.CSharp.Loca
tion) <0x00066>
  at Mono.CSharp.NamespaceEntry.Lookup
(Mono.CSharp.DeclSpace,string,Mono.CSharp
.Location,bool) <0x00138>
  at Mono.CSharp.NamespaceEntry.LookupNamespaceOrType
(Mono.CSharp.DeclSpace,str
ing,Mono.CSharp.Location,bool) <0x0002d>
  at Mono.CSharp.DeclSpace.LookupNamespaceOrType
(string,Mono.CSharp.Location,bo
ol) <0x000d9>
  at Mono.CSharp.DeclSpace.LookupNamespaceOrType
(string,Mono.CSharp.Location,bo
ol) <0x000b9>
  at Mono.CSharp.SimpleName.ResolveAsTypeStep
(Mono.CSharp.IResolveContext,bool)
 <0x0007e>
  at Mono.CSharp.Expression.ResolveAsBaseTerminal
(Mono.CSharp.IResolveContext,b
ool) <0x0002c>
  at Mono.CSharp.Expression.ResolveAsTypeTerminal
(Mono.CSharp.IResolveContext,b
ool) <0x0001a>
  at Mono.CSharp.MemberBase.get_MemberType () <0x0003c>
  at Mono.CSharp.FieldBase.Define () <0x00011>
  at Mono.CSharp.Field.Define () <0x0001b>
  at MemberCoreArrayList.DefineContainerMembers () <0x00067>
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.TypeContainer
/MemberCoreArrayList) <0x00014>
  at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.TypeContainer/MemberC
oreArrayList) <0x0004c>
  at Mono.CSharp.TypeContainer.DoDefineMembers () <0x00744>
  at Mono.CSharp.Class.DoDefineMembers () <0x00060>
  at Mono.CSharp.TypeContainer.DefineMembers () <0x00047>
  at Mono.CSharp.RootContext.PopulateTypes () <0x001a6>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00874>
  at Mono.CSharp.Driver.Main (string[]) <0x00055>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[]
(ob
ject,intptr,intptr,intptr) <0xffffffff>

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

-- 
View this message in context: http://www.nabble.com/MySql.Data-mcs-compilation-error-tp18607773p18610580.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list