Unable to connect to Sybase database using Dbfit

156 views
Skip to first unread message

Owupele Orupabo

unread,
Nov 28, 2016, 5:12:39 AM11/28/16
to dbfit

I am attempting to create a connection to Sybase database in Dbfit (.net version of Dbfit).
The dbfit page is below:

   !define COMMAND_PATTERN {%m -r  fitnesse.fitserver.FitServer,FitSharp\fit.dll %p}
   !define TEST_RUNNER {FitSharp\Runner.exe}
   !define PATH_SEPARATOR {;}
   !path FitSharp\dbfit.sybase.dll
   !|dbfit.SybaseTest|
   !|Connect|data source=Sybase;Port:n;Database=Process;User=userId;Password=password|

When I run the test, I get the error below:

The type initializer for 'dbfit.SybaseEnvironment' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Sybase.AdoNet2.AseClient, Version=1.15.356.0, Culture=neutral, PublicKeyToken=95d94fac46c88e1e' or one of its dependencies. The system cannot find the file specified.

I have tried to a JDBC connection instead and I still get the same error:

|Connect|jdbc:jtds:sybase://sybase:n/DbName;User=userid;Password=password|

ootesting ootesting

unread,
Nov 28, 2016, 6:59:02 AM11/28/16
to dbfit

I have also downloaded the fitsharp solution and verified the Sybase.AdoNet2.AseClient.dll exists and has been added. Then I build the solution, still get the same issues

Attempted to see if I can find Sybase.AdoNet4.AseClient.dll, after installing a query tool. Could not find the .dll in question

Mark Matten

unread,
Dec 1, 2016, 4:36:08 PM12/1/16
to db...@googlegroups.com
It does sound like you don't have the .Net driver installed. 

You won't be able to use the JDBC connection string either the .Net DbFit version (only with the java version). 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "dbfit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dbfit+un...@googlegroups.com.
To post to this group, send email to db...@googlegroups.com.
Visit this group at https://groups.google.com/group/dbfit.
For more options, visit https://groups.google.com/d/optout.

Mark Matten

unread,
Dec 1, 2016, 4:37:30 PM12/1/16
to db...@googlegroups.com
I'm not sure what you mean by "...build the solution...". What are you trying to do?

Sent from my iPhone

UNICORN LOVER

unread,
Apr 16, 2018, 10:21:59 AM4/16/18
to dbfit
where you able to connect to Sybase from dbFit?
Reply all
Reply to author
Forward
0 new messages