Applications crash or become unresponsive if another user logs off a Remote Desktop session in Windows Server 2008 or Windows Server 2008 R2
- One server is a file server and another is a Remote Session Host server (terminal server).
- A folder on the file server is mapped for use by remote users connecting to the RDS server.
- An application on the mapped share is launched by multiple users.
- One user logs off, and this causes the other users of the application to experience an application crash or unresponsiveness.
Technically the FCB is not owned by any specific user. It’s just a shared structure that represents a file. The FCB is created when the first handle to the file is opened, and it's destroyed when the last handle to the file is closed. Therefore, it is not tied to a user.
It's the file object that belonging to the user who logs off that gets orphaned. If that file object happens to back the file system cache or a mapped section, you experience these IO errors.
- Do not run shared applications from a mapped folder. Instead, install the shared application locally on the terminal server.
- Use WebDAV shares instead of mapped folders if remote binary sharing is required.
- Compile the application by using the Swap run from network linker setting:
- This setting is described here: http://msdn.microsoft.com/en-us/library/chzz5ts6(v=vs.71).aspx
- If the application is a managed app, use the Shadow Copy feature that's described here: http://blogs.msdn.com/b/junfeng/archive/2004/02/09/69919.aspx
Artikelnummer: 2536487 – Letzte Überarbeitung: 10/27/2016 17:45:00 – Revision: 6.0