[Mono-list] Mono and NPGSQL problems, help please!!

Francisco Figueiredo Jr. francisco at npgsql.org
Tue Nov 17 20:29:12 EST 2009


On Tue, Nov 17, 2009 at 11:04, Martín Neu <martin.neu at gmail.com> wrote:
> I send you heare a sample.
> When runing with MS compiles there is no error, but when runing with XSP
> (Mono VS Debug tools) i get the error.
>
> Thanks!!!
>

Hi, Martín!

I tested your sample code here and it showed up the label ok.

I tested it on OSX with latest mono release.

Maybe there is a chance your mono install is not ok?

I hope it helps



> On Tue, Nov 17, 2009 at 9:54 AM, Francisco Figueiredo Jr.
> <francisco.figueiredo.jr at gmail.com> wrote:
>>
>> It's strange.
>> Can you send me a test sample?
>> I can try it here in my dev machine and see if I get the same problem you
>> are getting.
>> Thanks in advance
>>
>> Regards,
>> Francisco Figueiredo Jr.
>> Npgsql Lead Developer
>> http://www.npgsql.org
>> http://fxjr.blogspot.com
>> http://twitter.com/franciscojunior
>> On 17/11/2009, at 09:46, Martín Neu <martin.neu at gmail.com> wrote:
>>
>> Hi!
>>
>> I use the version 2.0.7, but i try with 2.0.6 too.
>> I try with booth mono and ms compiled version's.
>>
>> I realy lost...
>>
>> On Mon, Nov 16, 2009 at 11:30 PM, Francisco Figueiredo Jr.
>> <francisco at npgsql.org> wrote:
>>>
>>> On Mon, Nov 16, 2009 at 11:45, Martín Neu <martin.neu at gmail.com> wrote:
>>> > I just tried remove Mono.Security and only reference NPGSQL, but i get
>>> > the
>>> > same error.
>>> > I think NPGSQL was compiled whit Mono.Security inside.
>>> >
>>> > Other thing i try is re-compile npgsql referencing Mono.Security
>>> > located in
>>> > the Mono GAC, but fail again.
>>> >
>>> > Any idea?
>>> >
>>>
>>> Which Npgsql version did you get?
>>>
>>> I think you are using the ms.net compiled binary. Try to use the Mono
>>> compiled binary.
>>>
>>> I know this shouldn't give you different results, but I've seen cases
>>> where you get problems by using Mono compiled binary with ms.net and
>>> vice-versa.
>>>
>>> I hope it helps.
>>>
>>>
>>>
>>>
>>> > On Mon, Nov 16, 2009 at 10:39 AM, Marek Habersack
>>> > <grendel at twistedcode.net>
>>> > wrote:
>>> >>
>>> >> Martín Neu wrote:
>>> >>>
>>> >>> Hi Marek!
>>> >>
>>> >> Hey,
>>> >>
>>> >>>
>>> >>> I can't remove it becouse i need the npgsql library to connect my
>>> >>> application to PostgreSQL.
>>> >>
>>> >> Yes, you can remove it. Mono has its own copy of Mono.Security and the
>>> >> one
>>> >> distributed with Npgsql (for the benefit of .NET), that is the one
>>> >> you're
>>> >> most likely using, is too old for your Mono.
>>> >>
>>> >> marek
>>> >>>
>>> >>> Any other idea?
>>> >>>
>>> >>> Thanks!
>>> >>>
>>> >>>
>>> >>> On Mon, Nov 16, 2009 at 10:32 AM, Marek Habersack
>>> >>> <grendel at twistedcode.net <mailto:grendel at twistedcode.net>> wrote:
>>> >>>
>>> >>>    MNEU wrote:
>>> >>>
>>> >>>        Hi!
>>> >>>
>>> >>>    Hello
>>> >>>
>>> >>>
>>> >>>        I'm using mono in Windows environment (using npgsql), when i
>>> >>> run
>>> >>>        the proyect
>>> >>>        with MS compiler i have no errors and work fine. But when i
>>> >>> use
>>> >>>        the mono
>>> >>>        compiler i get this error:
>>> >>>
>>> >>>
>>> >>>        ** (C:\Program
>>> >>>        Files\Mono-2.4.2.3\lib\mono\2.0\winhack\xsp2.exe:4188):
>>> >>>        WARNING **: Missing method
>>> >>>
>>> >>>
>>> >>>  Mono.WebServer.XSPWebSource::.ctor(IPAddress,int,SecurityProtocolType,X509Certificate,PrivateKeySelectionCallback,bool,bool,bool)
>>> >>>        in assembly C:\Program
>>> >>>
>>> >>>
>>> >>>  Files\Mono-2.4.2.3\lib\mono\gac\Mono.WebServer2\0.2.0.0__0738eb9f132ed756\Mono.WebServer2.dll,
>>> >>>        referenced in assembly C:\Program
>>> >>>
>>> >>>
>>> >>>  Files\Mono-2.4.2.3\lib\mono\gac\xsp2\2.4.2.0__0738eb9f132ed756\xsp2.exe
>>> >>>
>>> >>>
>>> >>>        I have the Mono.Security.dll referenced and in the same
>>> >>> directory.
>>> >>>
>>> >>>    Remove it and it will work
>>> >>>
>>> >>>    marek
>>> >>>
>>> >>>
>>> >>
>>> >
>>> >
>>> > _______________________________________________
>>> > Mono-list maillist  -  Mono-list at lists.ximian.com
>>> > http://lists.ximian.com/mailman/listinfo/mono-list
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Francisco Figueiredo Jr.
>>> Npgsql Lead Developer
>>> http://www.npgsql.org
>>> http://fxjr.blogspot.com
>>> http://twitter.com/franciscojunior
>>
>
>



-- 
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://www.npgsql.org
http://fxjr.blogspot.com
http://twitter.com/franciscojunior
Sent from Brasilia, DF, Brazil


More information about the Mono-list mailing list