I am facing an issue that is killing me for 4 long days.Still i couldn't able to solve that.I have written 3 custom field controls where i have deployed its dll in bin folder.
Issue:
I am getting this error while doing Content Deployment from authoring server to production server.
The exception thrown was 'System.Security.SecurityException' : 'Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.'
I am having a custom policy file where i have given all the permissions.
I did the following:
1.Deployed with Full trust,still the same error
2.Deployed with custom policy file,still the same error
3.Installed the dll in GAC(authoring server),the deployment job successfully exports from authoring server but at the time of importing in production server,i am getting the same error(in prod. server i insatlled the dll in GAC)
I am getting this error only for custom field controls dll.I am having a separate dll for webparts,that doesn't give me error.
Can anyone help me out to solve this issue asap.
Thanks in advance.
arun.k