<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: this.ServerInfo.SharePointSiteCollectionUrl.ToString() not working</title><link>https://www.infopathdev.com:443/forums/thread/79131.aspx</link><pubDate>Thu, 31 May 2012 23:32:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79131</guid><dc:creator>meyerdenney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79131.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79131</wfw:commentRss><description>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.</description></item><item><title>this.ServerInfo.SharePointSiteCollectionUrl.ToString() not working</title><link>https://www.infopathdev.com:443/forums/thread/79130.aspx</link><pubDate>Thu, 31 May 2012 23:27:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79130</guid><dc:creator>meyerdenney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79130.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=79130</wfw:commentRss><description>For some reason, this.ServerInfo.SharePointSiteCollectionUrl.ToString() won&amp;#39;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&amp;#39;t find anything.

The error I get is InfoPathTemplate.FormCode&amp;#39; does not contain a definition for &amp;#39;ServerInfo&amp;#39;	

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)</description></item></channel></rss>