during design time i get could not open..... error. when i use it in run time in vs i get following error message in debug mode The query cannot be run for the following DataObject: BarCode InfoPath cannot run the specified query. InfoPath either cannot connect to the data source, the service has timed out, or the server has an invalid ...