Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Access Denied saving Web Part properties

  Asked By: Meera    Date: Aug 15    Category: Sharepoint    Views: 3690

I have developed a web part that should draw a graph, I want to store
some information in web part properites, so I wrote the following
property

[Browsable(true),
Category("Miscellaneous"),
DefaultValue(""),
Description("Ticker to draw"),
FriendlyName("Ticker"),
XmlElement(ElementName="Ticker"),
WebPartStorageAttribute(Storage.Personal)]
public string Ticker
{
get
{
return ticker;
}

set
{
ticker = value;
}
}

everything is ok, but I when change the property in the code, it
isn't saved, so I called the "this.SaveProperties = true; "
but I got the following exception
Microsoft.SharePoint.WebPartPages.WebPartPageUserException: Access
Denied saving Web Part properties: either the Web Part is embedded
directly in the page, or you do not have sufficient rights to save
properties (Web Part 'Volume and Price Graph'). at
Microsoft.SharePoint.WebPartPages.WebPart.a() at
Microsoft.SharePoint.WebPartPages.WebPart.set_SaveProperties(Boolean
value) at X_Treme.ValuAction.WebParts.VolumePriceGraph.RenderWebPart
(HtmlTextWriter output) in c:\inetpub\wwwroot\x-treme.valuaction\x-
treme.valuaction.webparts\graphs\volumepricegraph.cs:line 290

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Ravindra Salvi     Answered On: Aug 15

I had a similar problem recently and the problem was that the Web Part
was on a Portal page  (as opposed to a team site) - and I could only save
the properties  if the page was in Edit Mode! Can you go into Edit Mode
and then see if your Web Part works?

 
Didn't find what you were looking for? Find more on Access Denied saving Web Part properties Or get search suggestion and latest updates.




Tagged: