Sharing Violation on XSL Transform Output File

  • Thread starter Thread starter Baseman
  • Start date Start date
B

Baseman

Hi There,

I'm running a System.Xml.Xsl.XslTransform and outputting an HTML file as the
result. Immediately after the transform, I try to open the resulting file using
either one of these three methods:

1) Open browser, try to open file
2) Find file in File Manager and double-click.
3) Use ProcessStartInfo and Process.Start() to 'shell' execute the file from
within my application.

It seems that for a certain length of time after my transform, the file is
locked because I get a "sharing violation" on all three methods above.

Anyone know what would cause this? I explicitly nullify the objects that might
hold onto the file, but I can't seem to crack this one.

TIA
-B
 
Back
Top