- Unless you intend to use your WebPart on SharePoint 2003 site inherit your WebPart class from System.Web.UI.WebControls.WebParts.WebPart
- Deploy WebPart dll to bin folder instead of GAC [full trust] if possible
Remember to add [assembly: AllowPartiallyTrustedCallers()] to allow the strong named assembly to run from the bin - Remember to change trust level in web.config from "WSS_Minimal" to "WSS_Medium" or create your own policy if your WebPart uses Object Model
No comments:
Post a Comment