Thursday, May 29, 2014

VS 2013: The requested operation cannot be performed on a file with a user-mapped section open

Symptom:

You try to build your project in Microsoft Visual Studio 2013 and you get the following error.

The requested operation cannot be performed on a file with a user-mapped section open...

You have even rebooted the computer and this problem returns.

Cause:

There are some windows open with a resource (most likely a config file) related stuff open in Visual Studio 2013.

The reason why rebooting would not work is that Visual Studio keeps track of the session state next time you reopen the project that causes the problematic document open again.

Fix:

Close all the documents and rebuild (yes, it's just as simple as that!).

Post a Comment