SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using SharePoint 2010 and Form Services. I have an InfoPath (IP) form which calls a web service. This web service is relative to the current server, actually it's a feature I created. I set the Data Connection in the IP form to not load on start. In the code behind I change the serviceurl to the current server's URL. It works great on my dev box, but when I move it to the staging server it errors, error below. It does however still run through my codebehind on my code and my data appears.

The following query failed: ListGroupUsers (User: DOMAIN\SPADMIN, Form Name: RequestForm, IP: , Connection Target: , Request: Forms, Form ID: urn:schemas-microsoft-com:office:infopath:RequestForm:-myXSD-2010-09-10T15-05-49 Type: DataAdapterException, Exception Message: The remote name could not be resolved: 'bricweb1' The remote name could not be resolved: 'bricweb1')

bricweb1 is my dev box.


share|improve this question
So, are you trying to connect to the dev. box from your staging env? Or is the error exactly that? – tarjeieo Apr 11 '11 at 14:54
i want the staging server to connect to itself, not the dev – David Lozzi Apr 11 '11 at 15:13
up vote 1 down vote accepted

It appears that it is looking at the dev box still for the data connection. My suggestion is to save as the source files for the form, then open the manifest.xsf with notepad. I would do a search for the dev box name and then replace it with the staging server name and then publish. If you are using a multi-server environment, you may want to consider a DNS entry of a server name using a load balanced IP address for the server name in order to keep the load equal.

share|improve this answer

If you want portable data connections in InfoPath forms, the proper way to do it is with Data Connection Libraries. Here are a couple of links on how to use them. They are easy, they work, and it seperates the physical location of your data services from your form providing a good layer of abstraction.

How To: Create and Use a Data Connection Library

Manage Data Connection Files for InfoPath Forms Services

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.