Showing posts with label code access security. Show all posts
Showing posts with label code access security. Show all posts

Tuesday, August 11, 2009

Disable IE Enhanced Security for Windows 2008

When you are using windows 2008 as your workstation, then IE Enhanced security will be a burden for you.You can easily disable this.

Step 1 : Go To Server Manager



step2 : Turn Off the Security

Thursday, July 23, 2009

Code Access Secuity in Sharepoint

Writing a web part or web service may not be a big issue but deploying them is certainly a headache. You start getting permission errors as soon as you deploy your code on the server.
You will get following error
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.

There are three ways to assign execution permissions to your code:

1. Increase the trust level for the entire virtual server
2. Create a custom policy file for your assemblies
3. Install your assemblies in the GAC