Subject Re: c# connection string datasource
Author rkamarowski
nick, the connection string now reads:

connStr = "User=SYSDBA;" +
"Password=masterkey;" +
"Database=c:/photography/databaase/c#/rak-photo.ib;" +
"DataSource=rak;" +
"SystemType=1";

the System DSN was updated to show the new interbase file, and i'm
still getting the same error.

bob k.

--- In firebird-support@yahoogroups.com, "Nick Upson" <nick.upson@...>
wrote:
>
> are you sure this is correct
>
> Database=c:/photography/databaase/c#/rak-photography;
>
> I'd expect some more like
>
> Database=c:/photography/database/c#/rak-photography.fdb;
>
> NB thats databaase to database & filename extension added
>
> On 18/07/07, rkamarowski <rkamarowski@...> wrote:
> > the following connection string is returning an error:
> >
> > connStr = "User=SYSDBA;
> > Password=masterkey;
> > Database=c:/photography/databaase/c#/rak-photography;
> > DataSource=rak;
> > SystemType=1;";
> >
> > i have a System DSN defined as 'rak' with the
Firebird/InterBase(r) Driver
> >
> > below is the error. what am i doing wrong???
> > thanks,
> > bob k.
> > -----------
> > FirebirdSql.Data.FirebirdClient.FbException was unhandled
> > Message="Unable to complete network request to host \"rak\"."
> > Source="FirebirdSql.Data.FirebirdClient"
> > ErrorCode=-2147467259
> > StackTrace:
> > at
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
> > at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create()
> > at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()
> > at FirebirdSql.Data.FirebirdClient.FbConnection.Open()
> > at rak_photography.FormMain..ctor() in
> >
C:\Photography\Software\rak-photography\rak-photography\rak-photography\FormMain.cs:line
> > 40
> > at rak_photography.Program.Main() in
> >
C:\Photography\Software\rak-photography\rak-photography\rak-photography\Program.cs:line
> > 17
> > at System.AppDomain._nExecuteAssembly(Assembly assembly,
> > String[] args)
> > at System.AppDomain.ExecuteAssembly(String assemblyFile,
> > Evidence assemblySecurity, String[] args)
> > at
> > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
> > at System.Threading.ThreadHelper.ThreadStart_Context(Object
state)
> > at System.Threading.ExecutionContext.Run(ExecutionContext
> > executionContext, ContextCallback callback, Object state)
> > at System.Threading.ThreadHelper.ThreadStart()
> > InnerException: FirebirdSql.Data.Common.IscException
> > Message="Exception of type
> > 'FirebirdSql.Data.Common.IscException' was thrown."
> > Source="FirebirdSql.Data.FirebirdClient"
> > ErrorCode=335544721
> > IsWarning=false
> > StackTrace:
> > at
> > FirebirdSql.Data.Client.Gds.GdsConnection.Connect(String dataSource,
> > Int32 port, Int32 packetSize, Charset charset)
> > at
> > FirebirdSql.Data.Client.Gds.GdsDatabase.Attach(DatabaseParameterBuffer
> > dpb, String dataSource, Int32 port, String database)
> > at
> > FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
> > InnerException:
> >
> >
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Visit http://www.firebirdsql.org and click the Resources item
> > on the main (top) menu. Try Knowledgebase and FAQ links !
> >
> > Also search the knowledgebases at http://www.ibphoenix.com
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>