Here is what I tried:
- Change the directory where the temporary files are stored. (Changes locally on each website).
- Store the XMLSerialization object in a global variable and use this instead of creating a new one each time.
- Delete all temporary files in the temp windows folder.
- Set permissions in the Windows \ temp folder (I set them every time for everyone to try to solve the problem).
My setup is as follows:
IIS7 for a dedicated Windows 2008 server. The website is written in ASP.NET using Delphi. I have several XML files that require serialization, and not just one. My site talks about a web service and processes XML (I assume this is the part that breaks everything)
Are there any suggestions other than those listed? I read about using SGEN to precompile a serialization object, but will this work for more than one XML file? I really don't know much about this.
Here is an example:
This is the code for one of my XML files. StockXMLSer is stored globally, and after testing only once is created for each site.
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;
webnoob
source share