ApplicationPermission.Demand() forces a SecurityException at run time if the current user has not been granted
the permission specified by the current instance.
1. If you use WCF services you need to enable AspNetCompatibility
2. Then you have to log -in the user. Below is a sample code that would do this - create an authentication ticket for a user that has needed rights to Publish
IContent item and then clear the authentication ticket.
// you can pass the user as a query string or use some decrypted format.
MembershipUser user1 = Membership.Providers[
var context = HttpContext.Current;
HttpCookie c = FormsAuthentication.GetAuthCookie(user1.UserName,
// create content item here
// clear the authentication ticket after the content has been created.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items