I have build a web application which the user can request a report which is generated on the server and sent back to the client. The process works fine and sends the file back to the client, however we are unable to open the file. Further investigation reveals that a process on the server still has a handle on the file by the IIS Application Pool.
Here is the strange part:
- The .NET code calls Close() which closes the file and underlying stream.
- This issue only occurs in our production servers. In development and testing it works fine.
- We tried changing many different settings on the server and in IIS
- We have tried many different ideas to get this to work on the production server with no luck so far.
What could be the cause of this? We are running Windows Server 2003, IIS 6. Please help!!