﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / The distribution agent failed to create temporary files / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 05:54:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: The distribution agent failed to create temporary files</title><link>http://www.sqlservercentral.com/Forums/Topic1364832-1550-1.aspx</link><description>Thanks, I'll give process monitor a try.  As far as the permissions I even created a share and granted full control to everyone, same thing.  The real stupid part of this is that is does breath every ten minutes or so.  If I keep refreshing replication monitor, it shows error, error, error, transactions delivered, error...</description><pubDate>Fri, 15 Mar 2013 07:49:01 GMT</pubDate><dc:creator>pcwik</dc:creator></item><item><title>RE: The distribution agent failed to create temporary files</title><link>http://www.sqlservercentral.com/Forums/Topic1364832-1550-1.aspx</link><description>[quote][b]pcwik (3/14/2013)[/b][hr]I setup replication using the impersonate settings, so it's using the SQL Agent account which is domain and is an Admin on both boxes.  I'm still getting the error.[/quote]Sorry to hear that. You can try using [url=http://technet.microsoft.com/en-us/sysinternals/bb896645]Process Monitor[/url] to find out a bit more about the accounts and access requests involved - that's what I did which enabled me to work out I was looking at the wrong box.You will need to check the exact permissions on the folder involved as well. Even an admin account can be denied access to folders.</description><pubDate>Fri, 15 Mar 2013 05:32:00 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item><item><title>RE: The distribution agent failed to create temporary files</title><link>http://www.sqlservercentral.com/Forums/Topic1364832-1550-1.aspx</link><description>I setup replication using the impersonate settings, so it's using the SQL Agent account which is domain and is an Admin on both boxes.  I'm still getting the error.</description><pubDate>Thu, 14 Mar 2013 17:01:28 GMT</pubDate><dc:creator>pcwik</dc:creator></item><item><title>RE: The distribution agent failed to create temporary files</title><link>http://www.sqlservercentral.com/Forums/Topic1364832-1550-1.aspx</link><description>Hi allI managed to fix it. Confusingly, although the error message was on the publisher/distributor, the folder it was referring to was on the subscriber. I gave the distribution agent account write access to the folder and disabled on-access scanning for the folder (as I had done at the publisher/distributor), and lo-and-behold it works!Live and learn.Duncan</description><pubDate>Thu, 27 Sep 2012 02:50:55 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item><item><title>The distribution agent failed to create temporary files</title><link>http://www.sqlservercentral.com/Forums/Topic1364832-1550-1.aspx</link><description>HiI'm getting this error with a transactional replication setup on SQL 2008R2 Standard (SP1): The distribution agent failed to create temporary files in 'C:\Program Files\Microsoft SQL Server\100\COM' directory. System returned errorcode 5. (Source: MSSQL_REPL, Error number: MSSQL_REPL21100)I've been to [url]http://support.microsoft.com/kb/956032/en-us[/url] amongst other places, and as a result given full control to Everyone on the C:\Program Files\Microsoft SQL Server\100\COM folder (I tried the SQL Agent and Distribution agent accounts first). I've also disabled on-access scanning for the anti-virus software. It's a 2-node cluster so I've done this for both nodes.Is there anything else I can try in order to troubleshoot further? - only this one has got me completely stumped.Thanks everyone,Duncan</description><pubDate>Wed, 26 Sep 2012 10:42:58 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item></channel></rss>