I was running a .NET app, and all it did was say:
Request for the permission of type System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
After I hit Ok, the app crashed with an exception. I didn’t write it. Others could run it, I couldn’t. What was I doing wrong?
I was running the exe from a network share. Copying the exe to local fixed the problem.
Did you have write access on the network share? Did the other people? Was it trying to write something?
Gotta love a nice, meaningful error message.
I had write access, as did others. I don’t know if they were running it off the share; I don’t think so. I think it was trying to read a file from the share. I was not logged into a domain, I was connected to a Samba share. I don’t think any of this helped. But, power to the internet, a little Googling suggested (implicitly, not explicitly) the solution.