this.ServerInfo.SharePointSiteCollectionUrl.ToString() not working - InfoPath Dev
in

InfoPath Dev

this.ServerInfo.SharePointSiteCollectionUrl.ToString() not working

Last post 05-31-2012 04:32 PM by meyerdenney. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-31-2012 04:27 PM

    this.ServerInfo.SharePointSiteCollectionUrl.ToString() not working

    For some reason, this.ServerInfo.SharePointSiteCollectionUrl.ToString() won't work in one of my InfoPath forms. It works just fine in the other ones and all the forms are pretty similar. I have combed my using statements, libraries referenced and code for anything that could cause this.ServerInfo.SharePointSiteCollectionUrl.ToString() to not be found, but I can't find anything. The error I get is InfoPathTemplate.FormCode' does not contain a definition for 'ServerInfo' Anyone have any ideas on what might be causing this or some other way to get the site collection url? (I tried using the source parameter of the url, but its not always there)
    Filed under:
  • 05-31-2012 04:32 PM In reply to

    Re: this.ServerInfo.SharePointSiteCollectionUrl.ToString() not working

    Woops, turns out I had the wrong version of Microsoft.Office.InfoPath referenced. I grabbed the path from an InfoPath form that was working correctly and everything worked again.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.