Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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: http://sp.domain.com/FCSWorkPagesLibrary/request-intake.aspx?SaveLocation=https://sp.domain.com/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.

Thanks,

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.