Home  |  Linux  | Mysql  | PHP  | XML
From:Michael Garza Date:Tue Jan 12 18:59:11 2010
Subject:Re: How to use connection.GetSchema()?
There is another newsgroup posting called "Anyone tried using the
Sybase.AdoNet2.AseClient from ASP.NET?" which mentions that you need to
include the following DLLs along with sybdrvado20.dll. I've come to find
that we need to do this for our WinForms application as well.

msvcr80.dll
sybcsi_certicom_fips26.dll
sybcsi_core26.dll
sbgse2.dll


"kenn.minear" wrote in message news:4b4cbf5b.53d3.1681692777@sybase.com...
> Hi Paul,
>
> In my bin directory I have Sybase.AdoNet2.AseClient.dll
> (version 2.155.1000.0) and sybdrvado20.dll (version
> 2.155.1000.0).
>
> I gave up on using GetSchema and instead query the
> syscolumns table directly which works well for me, Sybase is
> the only database I connect to that requires an explicit
> conversion from integer to varchar, the six other databases
> I connect to will do that implicitely.
>
> My new error is when I try to load the AseDataAdapter, my
> code is:
>
> IDbDataAdapter idbAdapter = null;
>
> idbAdapter =
> (IDbDataAdapter)Activator.CreateInstance(typeof(Sybase.Data.AseClient.AseDataAdapter));
>
>
> And the result is:
>
> Could not load file or assembly 'Sybase.AdoNet2.AseClient,
> Version=2.155.1000.0, Culture=neutral,
> PublicKeyToken=95d94fac46c88e1e' or one of its dependencies.
> The located assembly's manifest definition does not match
> the assembly reference. (Exception from HRESULT: 0x80131040)
>
> Should I open a new thread?
>
> Regards, Kenn
>
>
>
>> Hi Kenn,
>>
>> What sort of application are you running here and please
>> indicate exactly how you deployed the DLLs.
>>
>> Thank you,
>>
>> -Paul
>>
>> <kenn.minear> wrote in message
>> > news:4b478162.28b8.1681692777@sybase.com... Hello, well
>> > I found Sybase.AdoNet2.AseClient.dll and changed the
>> > reference to the new dll in my project. I kept
>> sybdrvado20.dll in my bin path, but when I run my app I
>> > get this exception:
>> >
>> > System.IO.FileLoadException was unhandled
>> > Message="Could not load file or assembly
>> > 'Sybase.AdoNet2.AseClient, Version=2.155.1000.0,
>> > Culture=neutral, PublicKeyToken=95d94fac46c88e1e' or one
>> > of its dependencies. The located assembly's manifest
>> > definition does not match the assembly reference.
>> > (Exception from HRESULT: 0x80131040)"
>> >
>> > Obviously a DLL mismatch. I suspect sybdrvado20.dll.
>> >
>> > Any ideas?
>> >
>> > Regards and thanks for your help, Kenn
>>
>>
Navigate in group sybase.public.connectivity.adonet at sever forums.sybase.com
Previous Next


Your recent visits
Re: How to use connection.GetSchema()?
Re: Connect to proxy....via proxy
Illegal disk address range
Re: Cannot update null values into ase using AseCommand
Re: How get factory?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants