As far as I know, you can't 'workaround' the security. What you can do, is require permissions.
You must require elevation from the user, to allow your code to run with the required permissions.
In .NET you can do this using Declarative Syntax, or Imperative Syntax.
Here is a example from Microsoft with imperative syntax to require permission to a single folder:
FileIOPermission permFileIO =
new FileIOPermission(FileIOPermissionAccess.AllAccess, "C:\\Temp");
try
{
// Demand the permission to access the C:\Temp folder.
permFileIO.Demand();
resultText.Append("The demand for permission to access the C:\\Temp folder succeeded.\n\n");
}
catch (SecurityException se)
{
resultText.Append("The demand for permission to access the C:\\Temp folder failed.\nException message: ");
resultText.Append(se.Message);
resultText.Append("\n\n");
}