I have a problem where for some reason my database is not working within my server.
This is my main function:
The server class I wrote is a basic socket server that listens for connections.
Now my problem is that once my server starts up I cannot open the database (OleDb).
such as:
OleDbConnection dbCon = new OleDbConnection ( );
I setup my connection string then try to:
dbCon.Open ( );
This works perfect if I try before the:
server.start ( PORT, MAXCONNECTIONS );
However once I start the server it no longer works :S, and I have no clue why :S.
Thanks for any help.
This is my main function:
Code:
static void Main ( string [ ] args )
{
server.start ( PORT, MAXCONNECTIONS );
// Let the program quit when they press enter
Console.WriteLine ( "Press Enter to exit" );
Console.ReadLine ( );
Console.WriteLine ( "Server finished." );
// Stop the server
server.stop ( true );
}
Now my problem is that once my server starts up I cannot open the database (OleDb).
such as:
OleDbConnection dbCon = new OleDbConnection ( );
I setup my connection string then try to:
dbCon.Open ( );
This works perfect if I try before the:
server.start ( PORT, MAXCONNECTIONS );
However once I start the server it no longer works :S, and I have no clue why :S.
Thanks for any help.