Constant - Web Service Error Messages

Topics: Troubleshooting
Jun 16, 2011 at 8:49 PM
Edited Jun 16, 2011 at 8:50 PM

I have a new installation of Composite C1 (2.1.1),  which I downloaded and extracted to a folder, and setup in IIS7 to run in Integrated Mode .net 4.0. I've tried a number of different installation using the different starter sites, and the following happens on all them. Thanks for any help.

Everything seems to work fine, except I get an error message every minute or so that says: Server was unable to process request. --> Cannot create a file when that file already exists.

Here are the errors that show up in the log:

  6/16/2011 3:35 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:35 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:34 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:34 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:34 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:34 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:33 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:33 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:33 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:33 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:32 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:32 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:32 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:32 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:31 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:31 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:31 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:31 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:30 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:30 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:29 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:29 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:23 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:23 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:23 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:23 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:22 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:22 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:22 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:22 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:21 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:21 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:21 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:21 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:20 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:20 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:20 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:20 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:14 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:14 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:14 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:14 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:13 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:13 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:13 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:13 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:12 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:12 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:12 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:12 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:06 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:06 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
  6/16/2011 3:06 PM
Failed to write file:c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml
XmlDataProvider Critical
  6/16/2011 3:06 PM
Failed to move file: c:\Websites\CMS-Test\Website\App_Data\Composite\DataStores\Composite.Data.Types.IUserConsoleInformation_Published.xml.tmp
XmlDataProvider Critical
Jun 16, 2011 at 8:56 PM

The error message seems to be pretty obviuous, but have you checked the permissions for the App_Data folder for the user running your App Pool? In IIS this would usually be a user named IIS AppPool\<name of your site>. If its just for testing you should just give full access to Everyone, and remember to reset permissions for all subfolders and files as well.

Jun 16, 2011 at 9:52 PM

That was the first thing I tried, no luck though.

 

I used SysInternals Process Monitor to try and find out what is causing this, and it looks like the file .xml.tmp file is trying to rename to .xml, but the .xml file already exists which results in a Name Collision. The rename command sent to the os has the ReplaceIfExists option set to false.

 

Not sure if this helps, but wanted to ask around here before jumping in and looking at code.

Jun 16, 2011 at 10:16 PM

The original xml-file is supposed to be deleted before the .tmp file is renamed. The code for it is here http://compositec1.codeplex.com/SourceControl/changeset/view/7427#45973. What puzzles me is why there is no 

Failed deleting the file

log message, since this is what should be logged when the file can't be deleted.