Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I had developed a small windows application with firebird database. and I had created the setup and deployment project to install my application in other systems.
When I installed the setup file in my system its working fine but when I installed in others system its not working getting some error in connecting to the database.
so, friends please send me some solution to this problem
winforms applcation c#.net And Database Firebird 2.5.
Posted
Comments
[no name] 13-Jul-12 12:54pm    
Don't you think that when asking for help for something that "some error" is not at all helpful? How are we to know what "some error" means? Don't you think that it's kind of important information?
SubrahmanyamGurram 13-Jul-12 13:08pm    
Sorry , Wes Aday,I am unable to check what is error but its not able to connect to database. In my application I had taken username and password, passed to the connection object. But Unable to open the connection this is my problem. this problem is raising when I Install my application in a new system.
Zoltán Zörgő 13-Jul-12 15:07pm    
First of all, do you deploy the FB engine also? Or only the client? In the later case are you deploying all necessary files? How your connection string looks like? And what exactly is the exception you get?
SubrahmanyamGurram 14-Jul-12 3:01am    
Hi, Thanks for the reply again, i had installed FB Server in the client system, and In my connection string passing values like connectionString="Database=D:\fsi\fms\fms.fdb; Pooling=true; MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0; and username, password and role. and I am checking the connection is opened or not by passing the username, password and role from the UI form.In this case the connection was not opened.

1 solution

As I understood, you want the client and the server on the same machine. In this case:
1) Deploying a full-blown FB on a client makes not much sense. There is an embedded (ServerType=1) edition of FB (read this little bit outdated article to get an overview).
2) How exactly do you perform the FB deployment? Are you sure, that the service is started? Have you checked on the client that you can connect with the same parameters using FlameRobin for example?
3) As backslash is an escape character, be sure to use proper c# string literal: connectionString=@"... or double the backspaces.
4) With ServerType=0 you have to specify the server name in the connection string (localhost in your case). See: DataSource property here: http://connectionstrings.com/firebird#p57. This can be omitted only with embedded server.
5) Be sure that the user running the full-blown or embedded server has r/w access to the file.
If I have misunderstood, and client and server are on different machines, than you do not need to deploy the original FB package at all (http://www.firebirdsql.org/en/firebird-net-provider-faq/#6[^]), but all other considerations still stand.

+1) If none of this helps, the exact text of the exception would be also helpfull...
 
Share this answer
 
v2
Comments
SubrahmanyamGurram 14-Jul-12 3:35am    
i will make these chenges into my application and i will give my feed back
thanks Zoltan
Zoltán Zörgő 16-Jul-12 2:14am    
Any progress?
SubrahmanyamGurram 16-Jul-12 2:26am    
No yaar, getting struck there. i am unable find the what is an exception raised?
SubrahmanyamGurram 16-Jul-12 3:42am    
Hi Zoltan, can you please help me, which firebird database can i use for my application so that clients must do not install the database means server installation process.
Zoltán Zörgő 16-Jul-12 9:42am    
In the case when users do not connect to any remote server, only use a database on the client machine, you can use the embedded version

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900