Blog Home  Home Feed your aggregator (RSS 2.0)  
Kiruthik .com - Tuesday, October 05, 2010
eCCentric Vagabond
 

A Web Part or Web Form Control on this Page cannot be displayed or imported. You don't have Add and Customize Pages permissions required to perform this action



A Web Part or Web Form Control on this Page cannot be displayed or imported. You don't have Add and Customize Pages permissions required to perform this action

This error occurs in Sharepoint 2010 or when you upgrade to Sharepoint 2010 from MOSS 2007. It clearly says, adding a webpart/webcontrol to this page is not possible, since the user who adds doesnt have Add / Customise Page permission.

Solution :

(a) Fix for that User alone
Add the below permission to the user / group.



(b) Fix for the webpart(s) for any user
Check which webpart created this error. The commonly/mostly used Content Editor Webpart is the culprit for us. So added the below entry in the  web.config. If its other webpart, add Assembly, Namespace and TypeName accordingly.






Before going for the fix, lets see why this was working in MOSS 2007 and not in Sharepoint 2010. or  what is broken when you upgrade to Sharepoint 2010 ??

Well, nothing is broken. Its just Sharepoint 2010 which was coded to have more granular security.
In the previous version(s) - MOSS 2007 (im not sure about 2003, but it also works the same i hope). My team mate was so eager to know the reason before fixing.


So, I checked the web.config of a MOSS 2007 web application and it had the above kind of entry, but for all webparts !!

ie., Type/TypeName = "*"  (any class in that assembly is registered as safe & AllowRemoteDesginer was true. )



Also, I tried using reflector and checked the two DLLS (MOSS 2007 - Microsoft.Sharepoint.dll  &  Sharepoint 2010 - Microsoft.Sharepoint.dll )

Where I found few methods like below defined in 2007 DLL is not  present in 2010 DLL.





Simply to put up, for granular control instead of having TypeName= "*" - we have each and every webpart defined in the safecontrol !


Tuesday, October 05, 2010 9:08:08 PM UTC  #    Comments [1]   Sharepoint - MOSS 2007 | Sharepoint 2010  | 
List throttling in sharepoint 2010 on   Tuesday, September 14, 2010

List throttling

List throttling is one of the new options in SharePoint 2010 that enable to set limits on how severely users can put the beat down on your servers. In a nutshell, what it does is allow you to set a limit for how many rows of data can be retrieved for a list or library at any one time. The most basic example of this would be if you had a list with thousands of items, and someone created a view that would return all of the items in the list in a single page. List throttling ensures that such a request would not be allowed to execute. The hit on the server is alleviated, and the user gets a nice little message that says sorry, we can’t retrieve all of the data you requested because it exceeds the throttle limit for this list.

These kinds of operations that can trigger hitting this limit though aren’t limited to viewing data – that’s just the easiest example to demonstrate. There are other actions that can impact a large number of rows whose execution would fall into the list throttle limits. For example, suppose you had a list with 6000 items and a throttle limit of 5000. You create a view that only displays 50 items at a time, but it does a sort on a non-indexed column. Behind the scenes, this means that we need to sort all 6000 items and then fetch the first 50. If you are going to delete a web with large flat lists you potentially have the same problem. We need to select all of the items for all of the lists as part of the site deletion, so we could again hit the throttling limit. These are just a few examples but you can start to imagine some of the others.

For code and samples check MSDN.
Tuesday, September 14, 2010 5:54:50 PM UTC  #    Comments [1]   .Net | Sharepoint | Sharepoint 2010  | 
Nissan Sentra on   Thursday, September 09, 2010


Nissan Sentra




Bought a car, Nissan Sentra few weeks back. Hope to explore lot of places in Arizona and the West ..


Thursday, September 09, 2010 5:21:28 PM UTC  #    Comments [2]   Personal  | 
Gmail Priority Inbox on   Friday, September 03, 2010

Gmail Priority Inbox

Gmail Priority Inbox Link

I was seeing a small link in red called "New Priority Inbox beta" from yesterday. Today I clicked it... it said, Failed to activate Priority Inbox.

After couple of tries it got activated. So, What is it ??

This new feature if it works really as advertised will be really an awesome feature for most of us. Simply to put up, it just prioritizes the mails for us. But how ? Just it does it by watching our read/sent mails and also it gives us an option to mark a mail as Important/ Unimportant.

And also there is a new mailbox view which categorize the mails as : 
  1. Important and Unread  or
  2. Starred  or
  3. Everything Else


New Priority Inbox - New Mailbox View


I have subscribed to lot of newsletters starting from Techrepublic to DotNetSlackers and etc. And now Im not reading all of them or at-least not all the issues. So the quantity of the mail, then mails from Dell, HP, etc are just filling my mailbox. I dont want to unsubscribe those and also I dont want to label and archive them. I want it in my inbox. And also, sometimes, there is a possibility of missing a mail from some person due to the number of these kind of mails. So, the better way is prioritizing it. Thats what its all about !!

New Priority Inbox didnt read my old mails and its not showing any proper Important and Unread messages. May be it need sometime to loop through mails etc.. Hope it works as expected.

Friday, September 03, 2010 4:05:10 AM UTC  #    Comments [0]   General | Google | Technology  | 
Moved to the US on   Sunday, August 22, 2010

Moved to the USA - Kiruthik .com

Came to Phoenix, Arizona last month 31st . Working with a credit card giant.  For people who dont know, Arizona is a dry and hot place. Yes, its really hot even at 10pm :-(  Its located in the South Western side of the continent. Phoenix is the hottest city in the whole USA. . .

Yes, I will miss the skyscrapers, snow, busy streets in the East coast. But I have access to lot of National Parks from here in the West.


I live in Scottsdale(Phoenix Metropolitan Area), which is a big town near Phoenix. And office is around 2 miles from my flat. Have a lot to blog about, hope I will get back :)


Sunday, August 22, 2010 10:25:06 PM UTC  #    Comments [0]   Personal | US  | 
Canon EOS 7D on   Saturday, August 21, 2010

Canon EOS 7D

Canon EOS 7D

Bought a new Canon EOS 7D !!
More updates here : http://clicks.kiruthik.com/  or http://flickr.com/kiruthik
Saturday, August 21, 2010 2:35:47 AM UTC  #    Comments [0]   Personal | Photography | Gadgets  | 
Loafing Around !!! on   Monday, July 12, 2010

Didn't blog for a long time, haven't read anything,  watching all the movies on the day one, always chewing like a cow, annoying my cousin sister Durgaa, and for no reason pressurizing my bike . . .

Awful right ?   I'm doing all these for the past 100+ days !! Neither working nor doing anything useful, but am not feeling bad about it :D  

I'm getting into a new role with a new client. So for the past 2 months, the crazy initial stage, client specific trainings, setups, raising requests, new team, etc are my work. And before that it was end of a project and was free for nearly a month !!

Telecommuting in which I'm very good at :D is what my work is all about. Lets see how long its goes like this !!

Monday, July 12, 2010 10:21:00 PM UTC  #    Comments [0]   Personal  | 
Slate PC on   Thursday, January 07, 2010

Slate PC

In the CES keynote Steve Ballmer explained the HP slate tablet are "more powerful than a phone and almost as powerful as a PC. Perfect for reading, surfing the web and taking entertainment on the go," Ballmer showed the HP tablet running Amazon's Kindle software and played a video on it. Microsoft adopted the name slate computer to distinguish it from the pen-and-screen dealy introduced by Bill Gates in 2001. However, its not the real name for the tablet PC. Lets wait for the Slate!!

Update : 07 Apr 2010 - HP Slate info - leaked !!

http://www.engadget.com/2010/04/05/hp-slate-to-cost-549-have-1-6ghz-atom-z530-5-hour-battery/

Thursday, January 07, 2010 8:18:07 PM UTC  #    Comments [0]   Microsoft | Technology  | 
Happy New Year 2010 on   Friday, January 01, 2010

Happy New Year 2010






Friday, January 01, 2010 7:06:14 AM UTC  #    Comments [0]    | 
Copyright © 2012 Kiruthik Nandhakumar. All rights reserved.