title: Could not find file "C:\WINDOWS\TEMP\xxxx.dll
body: <p>Here is what I have tried:</p>
  
  <ol>
  <li>Change the directory in which the temp files are stored. (Changed locally to each website).</li>
  <li>Store the XMLSerialization object in a global variable and use that instead of creating a new one each time.</li>
  <li>Delete all temp files in the windows temp folder.</li>
  <li>Set permissions on the windows\temp folder (I have them set to everyone at the moment just to try and resolve the issue).</li>
  </ol>
  
  <p>My Setup is as follows:</p>
  
  <p>IIS7 on windows 2008 dedicated server.
  The website is written in ASP.NET using Delphi.
  I have several XML files that need serializing so not just one.
  My website talks to the web service and processes the XML (I am guessing this is the part that is breaking everything)</p>
  
  <p>Does anyone have any suggestions other than what is listed? I have read about using SGEN to pre-compile the serialization object but will this work for more than one XML file? I don't really know much about it.</p>
  
  <p>Here is an example:</p>
  
  <p>This is the code for one of my XML files. StockXMLSer is held globally and after testing is only created once per site.</p>
  
  <pre><code>function IntGetSTOCK_ITEMS(S: TStream): STOCK_ITEMS;
  begin
    if not Assigned(StockXMLSer) then begin
       StockXMLSer := XmlSerializer.Create(STOCK_ITEMS.ClassInfo);
       OutputDebugString('StockXMLSer Serializer Created');
    end;
    Result := STOCK_ITEMS(StockXMLSer.Deserialize(S));
  end;
  </code></pre>