[Mono-list] assembly not found in xsp

Daniel Soto daniel.soto2k at gmail.com
Mon Sep 17 13:41:19 EDT 2007


Sorry for the ignorance, it must be compiled with mcs/gmcs?

Thanks.

Robert Jordan escribió:
> Daniel Soto wrote:
>   
>> Thanks, it is recognized, But now shows me an CreateSemaphore error at 
>> Open() method.
>>     
>
> This is the Windows version of the DLL. Unfortunately there seems to
> be no official version for Mono, so you'll have to compile MySqlClient
> yourself.
>
> Robert
>
>
>   
>> This is a sample of my code
>>
>> string conn = "Server=localhost;Database=siscontrol;Data 
>> Source=localhost;Port=3306;User Id=root;Password=passwd123";
>>              
>> MySql.Data.MySqlClient.MySqlConnection db = new 
>> MySql.Data.MySqlClient.MySqlConnection(conn);
>>              
>> db.Open(); <--- ERROR HERE
>>
>> The error message is
>>
>> *Server error in '/' Application
>> *
>>
>> *Createsemaphore
>> *
>>
>> *Description: *Error processing request.
>>
>> *Error Message: *HTTP 500. System.EntryPointNotFoundException: 
>> CreateSemaphore
>>
>> *Stack Trace: *
>>
>> System.EntryPointNotFoundException: CreateSemaphore
>>   at (wrapper managed-to-native) MySql.Data.Common.Semaphore:CreateSemaphore (MySql.Data.Common.SECURITY_ATTRIBUTES&,int,int,string)
>>   at MySql.Data.Common.Semaphore..ctor (Int32 initialCount, Int32 maximumCount) [0x00000] 
>>   at (wrapper remoting-invoke-with-check) MySql.Data.Common.Semaphore:.ctor (int,int)
>>   at MySql.Data.MySqlClient.MySqlPool..ctor (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] 
>>   at MySql.Data.MySqlClient.MySqlPoolManager.GetPool (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] 
>>   at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] 
>>
>>
>> I'm using the connector/net 1.0.10.1. In a previous version of mono the 
>> code above works fine with my connection string.
>>
>> Any help or hint.
>>
>> Best regards
>>
>> Brandon Perry escribió:
>>     
>>> Use the MySql Connector assembly
>>> (http://www.mysql.com/products/connector/net/).
>>>
>>> On Sun, 2007-09-16 at 23:45 -0400, Daniel Soto wrote:
>>>   
>>>       
>>>> Hi all.
>>>>
>>>> I have a problem, hopefully you can help me.
>>>>
>>>> I installed succesfully mono 1.2.5 and xsp. I have a aspx pages that 
>>>> connect to MySql, but at execute the aspx pages with aspx, shows me an 
>>>> error.
>>>>
>>>> The type or namespace name `MySqlConnection' does not exist in the 
>>>> namespace `MySql.Data.MySqlClient'. Are you missing an assembly reference?
>>>>
>>>> I registered MySql.Data.dll into gac, using gacutil, also I added the 
>>>> reference to Web.Config
>>>>
>>>> <add assembly="MySql.Data, Version=5.0.6.0, Culture=neutral, 
>>>> PublicKeyToken=C5687FC88969C44D"/>
>>>>
>>>> The public token is the same that did registered in the gac. Of course, 
>>>> the version also is the same.
>>>>
>>>> Also, i added the dll into the "bin" directory in my application, but 
>>>> without success. Appears as if the namespace MySql.Data.MySqlClient is 
>>>> recognized, but i don't understand why it says that MySqlConnection is 
>>>> not recognized (MySqlConnection is a class in the namespace 
>>>> MySql.Data.MySqlClient)
>>>>
>>>> Any help, please.
>>>>
>>>> Best regards.
>>>> _______________________________________________
>>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>     
>>>>         
>>>   
>>>       
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>     
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>   



More information about the Mono-list mailing list