<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/49557.aspx</link><pubDate>Tue, 01 Dec 2009 06:05:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49557</guid><dc:creator>Ashwin Bhagwat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49557</wfw:commentRss><description>&lt;p&gt;Infopath /cache clearall&lt;/p&gt;</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/49556.aspx</link><pubDate>Tue, 01 Dec 2009 02:44:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49556</guid><dc:creator>mightytook</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49556</wfw:commentRss><description>In retrospect, it does seem like a big stick. I was at wit&amp;#39;s end with having a single form published to 21 libraries. When it came time to republish the form, we lost all promoted properties which then took 2 days for someone to get everything showing again. I did it once manually and vowed never to do that again so I wrote something to iterate through and get everything bubbled back up. The problem I had is that my exe kept complaining about locally cached templates, so I solved that by blasting away the local templates regularly with the code here. Crazy!</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/49554.aspx</link><pubDate>Tue, 01 Dec 2009 01:54:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49554</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49554</wfw:commentRss><description>&lt;p&gt;You took a mighty big stick to it. :)&lt;/p&gt;</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/49545.aspx</link><pubDate>Mon, 30 Nov 2009 21:39:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49545</guid><dc:creator>mightytook</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49545</wfw:commentRss><description>Here&amp;#39;s how I did it from a standalone C# EXE.  Not sure if you wanted it for an Infopath form or a standalone EXE.&lt;br /&gt;
&lt;br /&gt;
1. Add the directive &amp;quot;using System.Diagnostics;&amp;quot; at top.&lt;br /&gt;
2. Add a reference to &amp;quot;Microsoft.Office.Interop.InfoPath.Application&amp;quot;&lt;br /&gt;
&lt;br /&gt;
// Open a new shell (as hidden) and kick-off Infopath with the cache clearing parms&lt;br /&gt;
Process process = new Process();&lt;br /&gt;
process.StartInfo.UseShellExecute = false;&lt;br /&gt;
process.StartInfo.RedirectStandardOutput = true;&lt;br /&gt;
process.StartInfo.FileName = &amp;quot;C:\\Program Files\\Microsoft Office\\Office12\\INFOPATH.EXE&amp;quot;;&lt;br /&gt;
process.StartInfo.Arguments = &amp;quot;/cache clearall&amp;quot;;&lt;br /&gt;
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;&lt;br /&gt;
process.Start();&lt;br /&gt;
process.WaitForExit();&lt;br /&gt;
&lt;br /&gt;
// Grab hold of the running Infopath app and close it&lt;br /&gt;
Microsoft.Office.Interop.InfoPath.Application infopath2 = new Microsoft.Office.Interop.InfoPath.Application();&lt;br /&gt;
infopath2.Quit(false);&lt;br /&gt;
&lt;br /&gt;
Hope that helps.&lt;br /&gt;</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/25838.aspx</link><pubDate>Tue, 22 Jan 2008 22:41:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25838</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25838</wfw:commentRss><description>&lt;p&gt;You will want to first find out whether clearing the cache will even resolve the issue. It may not. Even if you can add cache clearing code to the OnLoad event--this is discouraged. It will slow down users when they load other forms (because they are not cached), and could potentially cause severe errors in the form just being opened (because it was just cached).&lt;/p&gt;</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/25806.aspx</link><pubDate>Tue, 22 Jan 2008 05:24:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25806</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25806.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25806</wfw:commentRss><description>&lt;p&gt;Hi Cathy,&lt;/p&gt;
&lt;p&gt;As Greg said, clearing the cache is a measure of last resort when your InfoPath form template is not cached correctly. You don&amp;#39;t need to use the command line tool to do this. Just go to Start-&amp;gt;InfoPath and when you have the Getting Started dialog, Select All Forms on the left and then select the form that is causing the problem in your list. Click remove on the right. That will also clear your cache.&lt;/p&gt;
&lt;p&gt;Cache issues should be very rare. They do happen from time to time, but you shouldn&amp;#39;t try to programmatically remove it from the cache. InfoPAth should automatically upgrade the form when it changes and this is one of the best features of InfoPath. Is your form domain trust? Where is it located - on a server? If you need to re-install the form every time, please consider using regform to create an MSI and sending your customers that. However, this is not *best*. Best practice is just to publish domain trust to a server and let InfoPath do autoupgrade. &lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/25805.aspx</link><pubDate>Tue, 22 Jan 2008 03:24:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25805</guid><dc:creator>cathy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25805</wfw:commentRss><description>&lt;p&gt;I am getting an error message when I am trying to open the infopath form from the sharpoint server form library. It is giving me the error: InfoPath cannot create a new or blank xml file. when I did search on the google, I got the solution for this as follows&lt;/p&gt;
&lt;p&gt;1. clear the infopath cache&lt;/p&gt;
&lt;p&gt;2. clear the browser&amp;#39;s history.&lt;/p&gt;
&lt;p&gt;I can direct the infopath users in my company towards how to clear the browser&amp;#39;s history.&amp;nbsp;But, I cannot direct them to run that &amp;#39;clearcache&amp;#39; command each time, they get this error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I would like to put the code for clearing the cache in the infopath Onload event.&lt;/p&gt;
&lt;p&gt;How can I achieve this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/25667.aspx</link><pubDate>Tue, 15 Jan 2008 17:48:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25667</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25667</wfw:commentRss><description>&lt;p&gt;It is not intended for one to clear the InfoPath cache from within an InfoPath form.&lt;/p&gt;
&lt;p&gt;What are your intentions?&lt;/p&gt;</description></item><item><title>How can I clear the InfoPath cache</title><link>https://www.infopathdev.com:443/forums/thread/25632.aspx</link><pubDate>Mon, 14 Jan 2008 15:32:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25632</guid><dc:creator>cathy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25632</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to clear the infopath cache programmatically, I have followed the following discussion.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/2526/25458.aspx#25458"&gt;http://www.infopathdev.com/forums/p/2526/25458.aspx#25458&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, I am using C# as the coding language, so, can any body tell me how can I clear the infopath cache through C#?I tried converting the same code in to C# but, it is not working.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>