Here's the environment:
Web Server A and B(Win server 2003/IIS6)
On ServerA I have a folder,say ShareFolder. I set up a WebSite with ShareFolder as its home directory.
On ServerB I create a website with its home directory points to ShareFolder
When brows to http://ServerB/website , An error message was shown:
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.
The execution is block by .Net framework Code Access Security, to solove this problem, follow the instruction of Microsoft Arcitle ID 320268.
To execute .Net assembly on remote machine, .Net has to trust codes from that machine, so we have to grant permission to codes come from remote server.