I'm using the following line of code to check the existance of a file on the box:
FileInfo thisFile = new FileInfo(filePath);
**Where filePath is a valid path on the server (which shouldn't even matter if it's not). I'm getting the following error:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
I've been back and forth with support since last night, but still no resolution. I have this exact same code working on two other accounts with no issue.
I've tried reducing the trust level through the web.config file, but that has apparently been blocked through an "inherited config file".
Any other ideas?
.brit
FileInfo thisFile = new FileInfo(filePath);
**Where filePath is a valid path on the server (which shouldn't even matter if it's not). I'm getting the following error:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
I've been back and forth with support since last night, but still no resolution. I have this exact same code working on two other accounts with no issue.
I've tried reducing the trust level through the web.config file, but that has apparently been blocked through an "inherited config file".
Any other ideas?
.brit