webClient schedules getting error 'request for permission of type' system.security.permissions
Require to run the Caspol commands.
Run the Caspol commands
Here is a batch file that runs these commands without typing them in.
Rename the caspolwebclient.txt to .bat
Run the batch file at each WS that needs to access webclient schedules.
Below are the actual commands:
The following command will add FullTrust to the Internet_Zone in DotNet 2.0:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -addgroup Internet_Zone -zone InterNet FullTrust -name FullTrust
The following command will add FullTrust to the Trusted_Zone in DotNet 2.0:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -addgroup Trusted_Zone -zone Trusted FullTrust -name FullTrust
This will result in output like:
The operation you are performing will alter security policy. Are you sure you want to perform this operation? (yes/no)
Then select Y and you should see:
Added union code group with "-zone" membership condition to the Machine level.
In some configurations, you may need to add the IIS computer into Internet Explorer as a trusted site for each browser.
- Internet Explorer > Internet Options > Security > Click trusted Sites > Click Sites
- Type in http://yourservername/webclient and click Add (Ex. http://tacweb/webclient)
- Deselect the checkbox for Require server verification (https:) for all sites in this zone.
- Click OK and Ok
- Close Internet Explorer and access webclient
See Lessons Learned Article #15179 if this is for 1.94 SP1 - Uninstalling KB2858725
* It may be necessary to give specific permissions in the registry if you are seeing system.permissions.UIPermission, mscorlib
Make a backup of the
From Windows, Start> Run> Regedt32.exe Expand the hives(folders) to
Right Click on 188.8.131.52 and select export, name the file and save. (This file can be used to restore the original settings of this branch)
Right click on this folder again and select permissions, select Users and add Full Control
See below for snapshots