Following the code example from this website, I created a windows console application that creates a mapped memory file:
using (var file = MemoryMapp
For non physical file, there are two cases,
You will have to use http://msdn.microsoft.com/en-us/library/dd267529(v=vs.110).aspx this constructor with following security.
MemoryMappedFileSecurity mSec = new MemoryMappedFileSecurity ();
mSec.AddAccessRule(new AccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null),
MemoryMappedFileRights .FullControl, AccessControlType.Allow));
And then try to access it from IIS with same security.