Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am filling a DataGridView in a Window's database application. It is working fine.
Now I want to run this application from another application. For that I am using process class in C#.

When I run the application directly it is working fine but When I call it from another application it shows an error like this:
System.Data.OleDb.OleDbException:No value given for one or more required parameters.


Error is thrown by ExecuteCommandTextForSignleResult class of Framework

Has anyone faced this issue before?
Posted
Updated 28-Dec-10 0:51am
v2
Comments
Estys 28-Dec-10 9:14am    
Could you show us a bit of code? Particularly the (suspected) errorprovoking statement.

I assume your connectionstring is in an app.config file.

Could it be a missing configuration file (<yourapp>.exe.config)?
Is the path to all required files defined?

Cheers
 
Share this answer
 
Comments
Khaniya 28-Dec-10 6:56am    
Thanks for your response
In same form I am creating ID which is generated by last id in database, it is generating id without any problem
while filling dataset, there it creats problem
Khaniya 28-Dec-10 7:02am    
file you are suggesting is present
Hi,

What i guess that you are passing some parameter to fetch data from database. So you are using process.start for your application to run then pass those parameter and collect in the main function of program as string array.

To get exact solution please post the code to get data form database.
 
Share this answer
 
Comments
Khaniya 28-Dec-10 7:15am    
Process.Start is working fine,
New Process can able to talk with database
problem arise when fetching data for datagridview
as Directly application working fine
vivekse 28-Dec-10 7:38am    
i need code of "fetching data for datagridview " .

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