I have an InfoPath form that contain FormCode In .Net (CodeForm- in C#).
The Form project contain Web Reference to a WebService(.asmx).
In the form I have a Drop-Down list that gets it's values from a method in the web service that recive data (string[]) from SQL server- the form contain DataConnection (called "CodeAreaPhone") to this Web Service Method !!!
I use the InfoPath SDK RegForm command line to create the MSI file and give the form full trust security.
The form work well when I install it on my machine. But when I install the form on other machine I get this Error:
Form template: file:///C:\Program%20Files\InfoPath%20Form%20Templates\HouseForm.xsn
The following DataObject either cannot be created or cannot be initialized: CodeAreaPhone
The query cannot be run for the following DataObject: CodeAreaPhone
InfoPath cannot run the specified query.
InfoPath either cannot connect to the data source or the service has timed out.
What is the problem? Is it somthing with my web reference (Web service)? I gave full trust security so what's wrong?