<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/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>Search results matching tags 'automation', 'HowTo', 'Development', and 'Error'</title><link>http://bloggingabout.net/search/SearchResults.aspx?a=1&amp;o=DateDescending&amp;tag=automation,HowTo,Development,Error&amp;orTags=0</link><description>Search results matching tags 'automation', 'HowTo', 'Development', and 'Error'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Documents.Open returns null, running Word automation under ASP.NET on x64</title><link>http://bloggingabout.net/blogs/rick/archive/2012/02/02/documents-open-returns-null-when-running-under-asp-net-on-an-64-bit-machine.aspx</link><pubDate>Thu, 02 Feb 2012 04:53:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:577121</guid><dc:creator>Rick van den Bosch</dc:creator><description>&lt;p&gt;When building an ASPapplication that generates Word documents,&amp;nbsp; it was working fine on&amp;nbsp;the local machine. A&amp;nbsp;windows XP installation with Office 2007.&amp;nbsp;When we&amp;nbsp;deployed it to windows 2008 (64 bit) and Word 2007 we saw that&amp;nbsp;Documents.Open returned null.&amp;nbsp;Other than this, there are no exceptions.&lt;/p&gt;
&lt;p&gt;The code that returned the error (simplified):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;Application app = new Application();&lt;br /&gt;Document doc = app.Documents.Open(ref name);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As it turns out, a 64 bit system stores temporary files in &amp;quot;C:\Windows\SysWOW64\config\systemprofile\Desktop&amp;quot; folder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;The solution&lt;/em&gt;&lt;/strong&gt;: create a new directory called &amp;quot;Desktop&amp;quot; inside&amp;nbsp;&amp;quot;C:\Windows\SysWOW64\config\systemprofile\&amp;quot;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item></channel></rss>