I have this app that is developed in VB.NET. I compile it on my harddrive and other harddrives and it works fine. When I transfer it to a server and myself or a user runs it, it has this message

"An unhandled exception of type 'System.Security.SecurityException' occurred in Dispositioner with Get 8100.NET.exe

Additional information: Security error."

Does anyone know why and how to fix it? Also if I transfer the source code and compile it there it does the same thing.