NS_E_SESSION_INVALID (0XC00D2F08) – Session Gone
Quick answer: restart the Windows Media Player Network Sharing service and clear the media library cache. Common cause is a corrupted playlist or broken media sharing session.
Quick Answer (for pros)
Stop the WMPNetworkSvc service, delete the folder %LOCALAPPDATA%\Microsoft\Media Player, reboot, and let WMP rebuild the database. That kills the broken session.
Why You See This Error
You're trying to stream or play media from another device (like an Xbox or a network share) and Windows Media Player can't find the session it created earlier. Happened to a client last month who had their PC go to sleep while streaming to an old Xbox 360. The session timed out, but the player still thought it was active. So you get error 0XC00D2F08 – the session is invalid because it doesn't exist anymore. Common triggers: PC goes to sleep during playback, network drops for a second, or you close and reopen WMP while something is buffering. Some folks also see it after a Windows Update that changed the sharing service. The real fix is to kill the stale session and rebuild the media database.
Fix Steps (Do These in Order)
- Stop the Sharing Service – Open Command Prompt as admin (
cmdright-click Run as Administrator). Type
and hit Enter. Wait for the service to stop (it'll say "The service stopped successfully.")net stop WMPNetworkSvc - Clear the Cache – Press Win+R, type
and hit Enter. This opens your Media Player folder. Delete everything inside it – yes, all the files. Don't worry, it's just cached databases and playlists. They'll rebuild next time you open WMP.%LOCALAPPDATA%\Microsoft\Media Player - Restart the Service – In the same admin Command Prompt, type
and hit Enter.net start WMPNetworkSvc - Reboot Your Machine – Not optional. A clean restart makes sure the service and cache are fresh.
- Open Windows Media Player – It'll say "Loading..." for a minute or two while it rebuilds the library. Let it finish. Then try to stream again. Should work.
Alternative Fixes (If Main One Fails)
If you still get the error after the steps above, try these one at a time:
- Run the WMP Troubleshooter – Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Media Player. Run it. It's not great, but sometimes it resets the sharing permissions.
- Check Your Network Profile – If your network is set to "Public", WMP won't share media. Change to "Private" in Settings > Network & Internet > Wi-Fi > Properties.
- Disable IPv6 Temporarily – In some home networks IPv6 breaks session discovery. Open Control Panel > Network and Sharing Center > Change adapter settings. Right-click your adapter > Properties > uncheck "Internet Protocol Version 6 (TCP/IPv6)". Reboot and test.
- Create a New Media Library – If the cache keeps corrupting, you can start fresh. Rename the
Media Playerfolder toMedia Player.old(instead of deleting). WMP will create a new one.
Prevention Tips
To avoid seeing this again: don't let your PC sleep while streaming. Set your power plan to "High performance" or at least disable sleep when media is playing. Also, restart the WMPNetworkSvc service once a month – old sessions pile up. And if you use Xbox, make sure both devices are on the same network update (I've seen old Xbox One consoles throw this because of a firmware mismatch).
Was this solution helpful?