Asp.net writing server side file
<p>Needed to write a server text file as the output of a business process initiated by ASP.net app.
The text file writing code is in a library file using standard stream code </p>

<p>All worked OK in IDE.</p>

<p>Publish and it falls over trying to write file. IIS is reluctant to write to the file system.</p>

<p>Much rummaging around and hair pulling finally led to a solution. It is not pretty and only applicable in a situation where you have control over the Webserver.</p>
