InfoPath 2013 form works in Preview and fails when uploaded to server - InfoPath Dev
in

InfoPath Dev

InfoPath 2013 form works in Preview and fails when uploaded to server

Last post 09-11-2019 08:08 AM by Hilary Stoupa. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-10-2019 07:42 AM

    • MSiri
    • Not Ranked
    • Joined on 04-26-2019
    • Posts 5

    InfoPath 2013 form works in Preview and fails when uploaded to server

    We are migrating an application from MOSS 2007 to SharePoint 2013. As part of this, I am migrating Code based InfoPath Form 2007 to InfoPath 2013. I updated all the data connections, web service connections and when I clicked on Preview, everything works fine. When I published this InfoPath to Server I am receiving - 'Cannot connect to remote server error'. Web services are on remote server. I cannot connect to the Web Service on server. I see these in ULS logs 1. Cannot find site lookup info for request Uri 'WEBSERVICE URL' 2. Internal web service routing is NOT enabled. As the form works fine on Preview, can i assume that the infopath form code is all good and there must be some with connections?
  • 09-11-2019 07:08 AM In reply to

    • MSiri
    • Not Ranked
    • Joined on 04-26-2019
    • Posts 5

    Re: InfoPath 2013 form works in Preview and fails when uploaded to server

    I am not the developer of this application, so it took a while to understand the code. After debugging the code, i identified that the issue is something related to our code. The code requires the site to work with "http://Servername:port/" and the AAM was not setup for this. After setting up Alternate access mapping the issue is resolved. It worked in my preview as this requirement to work with "http://Servername:port/" is only when the form is opened in browser. The code said if(browser){ code related to AAM }. This method was skipped in preview.
  • 09-11-2019 08:08 AM In reply to

    Re: InfoPath 2013 form works in Preview and fails when uploaded to server

    Thanks for posting the resolution! I'm glad you found it, that sounds like a tricky one.
    Hilary Stoupa

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.