<?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: InfoPath Error: System.IO.FileNotFoundException</title><link>https://www.infopathdev.com:443/forums/thread/63507.aspx</link><pubDate>Tue, 25 Jan 2011 07:56:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63507</guid><dc:creator>temp-x</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63507.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63507</wfw:commentRss><description>&lt;p&gt;hm, i successfully use SharePoint.DLL in my forms, but if you run it on the server (in case infopath client) or use it in web browser.&lt;/p&gt;</description></item><item><title>Re: InfoPath Error: System.IO.FileNotFoundException</title><link>https://www.infopathdev.com:443/forums/thread/63489.aspx</link><pubDate>Mon, 24 Jan 2011 20:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63489</guid><dc:creator>zubair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63489.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63489</wfw:commentRss><description>Thanks Jimmy for the reply... Ok I will try web service but I am unable to figure out why it is not working. I am running code on the server. I also used the same code&amp;nbsp;in the console application and it was working fine!!</description></item><item><title>Re: InfoPath Error: System.IO.FileNotFoundException</title><link>https://www.infopathdev.com:443/forums/thread/63474.aspx</link><pubDate>Mon, 24 Jan 2011 17:19:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63474</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63474</wfw:commentRss><description>&lt;p&gt;Code that uses the SharePoint object model has to be run directly on the server or you will get a FileNotFound exception.&amp;nbsp; A better practice, if possible, is to use the SharePoint web services, which do not have that restriction.&lt;/p&gt;</description></item><item><title>InfoPath Error: System.IO.FileNotFoundException</title><link>https://www.infopathdev.com:443/forums/thread/63471.aspx</link><pubDate>Mon, 24 Jan 2011 16:21:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63471</guid><dc:creator>zubair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63471</wfw:commentRss><description>Hi,

I am trying to create an instance of SPSite in Form_Loading event of the InfoPath 2007 template. When I use:

SPSite site = new SPSite(&amp;quot;http://myserver/mysite&amp;quot;) 

I get error: 

System.IO.FileNotFoundException: The Web application at http://myserver/mysite could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) at....

I am using Visual Studio 2008 on Windows 2008 R2 (64-Bit) 

Any suggestion?</description></item></channel></rss>