Our Favourite error:
Resolutions:
1. Code which needs higher access for ex, if we are dealing with AudienceManager etc etc. Keep the code in SPSecurity.RunWithEleveatedPrivileges.
2. As Usual, web.config, safe controls.
3. Sometimes, in the first step, you can add the webpart, but we get the error "HRESULT..DISP_E_Exception", same thing, RumWithElevated Privilelegs. Needs this when you are updating properties of the webpart etc.
Resolutions:
1. Code which needs higher access for ex, if we are dealing with AudienceManager etc etc. Keep the code in SPSecurity.RunWithEleveatedPrivileges.
2. As Usual, web.config, safe controls.
3. Sometimes, in the first step, you can add the webpart, but we get the error "HRESULT..DISP_E_Exception", same thing, RumWithElevated Privilelegs. Needs this when you are updating properties of the webpart etc.
No comments:
Post a Comment