Failed to render control: Value cannot be null. Parameter name: String
<div style='color:red'>Failed to render control: Value cannot be null. Parameter name: String</div>

Search

Accessible SharePoint WebSites
Download ARF

Failed to render control: Value cannot be null. Parameter name: String
 

Comments

Monday, 3 Nov 2008 09:04 by Jerry
Great Post :) But why Microsoft really removed it from Document libraries?

Tuesday, 4 Nov 2008 02:25 by Vince
I have no idea...only took a few hours to write!! --Vince

Friday, 7 Nov 2008 11:31 by Alan
This funtionality is really need!! I'm sorry, but I'm new to SharePoint. I deployed the solution, but I don't see a feature to activate or any way to set the up arrow on a list or document library. Any help would be greatly appreciated. Fantastic job! Thanks, Alan

Wednesday, 12 Nov 2008 09:40 by Joe
The WSP is deployed globally in Windows SharePoint Services 3.0. But the Up Folder icon/link doesn't appear in document libraries. What more needs to be done? Or is this for an earlier version of WSS? Thanks. >>> Joe

Wednesday, 12 Nov 2008 10:39 by Joe
The WSP is deployed globally in Windows SharePoint Services 3.0. But the Up Folder icon/link doesn't appear in document libraries. What more needs to be done? Or is this for an earlier version of WSS? Thanks. >>> Joe

Wednesday, 12 Nov 2008 11:22 by Joe
The WSP is deployed globally in Windows SharePoint Services 3.0. But the Up Folder icon/link doesn't appear in document libraries. What more needs to be done? Or is this for an earlier version of WSS? Thanks. >>> Joe

Thursday, 13 Nov 2008 03:21 by Vince
Alan, Joe, The functionality is a 'Feature' and so needs to be activated at the site level. If you goto Site Settings->Site Features you should see a feature called 'Folder Backup Feature', you will need to activate that for it to be enabled. --Vince

Thursday, 13 Nov 2008 04:47 by Elena
Hi, I have deploy globally in Windows SharePoint Services 3.0. the WSP: stsadm -o addsolution -filename TheKid.CustomActions.Backup.wsp but still doesn´t appear in my Site Features List, so I can´t activate it. What more needs to be done? Thanks!!!!

Thursday, 13 Nov 2008 05:25 by Elena
Hi, I have deploy globally in Windows SharePoint Services 3.0. the WSP: stsadm -o addsolution -filename TheKid.CustomActions.Backup.wsp but still doesn´t appear in my Site Features List, so I can´t activate it. What more needs to be done? Thanks!!!!

Thursday, 13 Nov 2008 07:27 by Vince
Sorry everyone, it appears the DLL was missing from the WSP (I uploaded the wrong one). It is correct now if you could download it again. You should be able to upgrade the solution STSADM -o upgradesolution or just remove the previous one and add the new one You will then need to deploy the solution.. Central Admin -> Operations -> Solution Management You should then see the feature in 'Site Features' --Vince

Thursday, 13 Nov 2008 08:44 by
Hi Vince, i deploy the new wsp but it doesnt appear again in the site features. have i to do something with the xml file? Thanks for your answers

Thursday, 13 Nov 2008 09:04 by Peter
i think that we will probably need to install a new feature. create a feature.xml , elements.xml and install it. it´s true? or this xml are into the wsp.

Thursday, 13 Nov 2008 11:25 by Vince
The new WSP contains everything you need. Can you rename it it .cab and then unsure the dll is in there? Also the feature is called 'TheKid.Backup', you could check that this feature exists in the 12\TEMPLATE\FEATURES folder. --Vince

Friday, 14 Nov 2008 01:23 by Peter
i can see the feature folder in 12\TEMPLATE not in 12\TEMPLATE\FEATURES. Thanks Vince

Friday, 14 Nov 2008 01:36 by David
HI Vince,The feature folder isnt 12\TEMPLATE\FEATURES, i copy it in this folder and install it stsadm.exe -installfeature -filename TheKid.Backup the feature appears now in site features and i activate it. what should happens now? if i create a new folder in a library and enter into it, the new button doesnt appear Thanks

Friday, 14 Nov 2008 02:15 by David
HI Vince,The feature folder isnt 12\TEMPLATE\FEATURES, i copy it in this folder and install it stsadm.exe -installfeature -filename TheKid.Backup the feature appears now in site features and i activate it. what should happens now? if i create a new folder in a library and enter into it, the new button doesnt appear Thanks

Monday, 17 Nov 2008 02:44 by Richard Harbridge
Hello Vince, David is correct in that it deploys to the Features folder. After moving it over into the features folder, and installing the feature I notice it does not display in the features (under web) for any of my SharePoint sites. (Weird no?) I looked over the code and everything looks in order, I also could activate it via stsadm but this doesn't seem to result in any change to the interface (David also mentions this) and it is still not available in the site features for me. It's still terrific that you wrote/supplied the source and I can take apart the source code and try and deploy it myself but if you were fixing it anyways that works for me too (and I won't double up the effort). Anyways best of luck just thought I would also share that I ran into the same problems David did as well as the feature not showing up in the managefeatures.aspx page. Thank you, Richard

Tuesday, 18 Nov 2008 05:04 by Mostafa Abdellah
Thank you very much for this article, i want to mention to: 1.we have to add this DLL as safe control in the web.config of our web application <SafeControl Assembly="TheKid.CustomActions.Backup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=919ab618f7ce98cf" Namespace="TheKid.CustomActions.Backup" TypeName="*" Safe="True" /> 2.change this function to be like that this prevent the up control from appearing in the root folder. private string GetOriginalFolder(ListViewWebPart lv) { string sOriginalRootFolder = (string)GetPrivateFieldValue(lv, "rootFolder"); if(sOriginalRootFolder!=null) if (Page.Request["Key"] == lv.StorageKey.ToString()) sOriginalRootFolder = Page.Request["RootFolder"]; return sOriginalRootFolder; }

Tuesday, 18 Nov 2008 05:05 by hina
Hi, i am having one issue with listview webpart.how can i set variable as filter value with listview webpart.

Wednesday, 19 Nov 2008 12:48 by Bill
Hi Vince, I have deployed the WSP got it to show up under Site Features and activated it. However the Button does not show up on any of my lists. Is there something I am missing? Something I need to do besides deploying the WSP file and activating it?

Wednesday, 19 Nov 2008 04:56 by Vince
Everyone, I am really sorry for this...for some reason the WSP was not building correctly. I have now re-built the WSP, installed it on two clean VMs and ensured it works. Could you please download the latest version (using the link in the post) and install it. I used... STSADM -o addsolution -filename c:\temp\thekid.customactions.backup.wsp STSADM -o deploysolution -name thekid.customactions.backup.wsp -immediate -allowgacdeployment -url http://site STSADM -o execadmsvcjobs After this I went to the site settings->site features and activated it. It should show up in normal document libraries and in listview webparts. This is site scoped and not site collection...you can modify the feature definition if you want it for all the site collection. Again, I am really sorry for any problems you have had. --Vince

Friday, 21 Nov 2008 04:33 by Roald
Great feature. But I seem to have the same problem others have. On a fresh installation it works, but on an 'older' installation all installs well, gets added to the CAG and the web.config file gets altered....but no 'Up Folder' button. I tried it on another basic sharepoint installation (just a different master page) and there it doesn't show up either. It seems to do with different settings in SharePoint... Any ideas? I really like the feature and would love to have it available for my users. Roald

Friday, 21 Nov 2008 04:54 by Roald
Great feature. But I seem to have the same problem others have. On a fresh installation it works, but on an 'older' installation all installs well, gets added to the CAG and the web.config file gets altered....but no 'Up Folder' button. I tried it on another basic sharepoint installation (just a different master page) and there it doesn't show up either. It seems to do with different settings in SharePoint... Any ideas? I really like the feature and would love to have it available for my users. Roald

Tuesday, 25 Nov 2008 09:45 by Garry
New instructions worked great, thanks Vince

Wednesday, 26 Nov 2008 09:15 by panoone
Hi Vince, On opening the project file I get an error with "one or more projects could not be opened". Opening the .sln file in plain text shows a second project pointing to a non-existent path. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TheKid.CustomActions.Backup.Solution", "Solution\TheKid.CustomActions.Backup\TheKid.CustomActions.Backup.Solution.csproj", "{B873FFCF-3C9B-4707-AB19-C7C0ED910C54}" EndProject Can this safely be deleted from the solution or is it missing from the zip? Also, the TheKid.CustomActions.Backup.csproj file that is included has post-build copy event as follows: <PostBuildEvent>copy "$(TargetPath)" "C:\Inetpub\wwwroot\wss\VirtualDirectories\spworks80\bin\"</PostBuildEvent> What should this be changed to for my current environment? My primary webapp's \bin directory on the web front end? Thanks for a great solution. Really hoping to be able to use it.

Thursday, 27 Nov 2008 03:43 by panoone
Hi Vince, On opening the project file I get an error with "one or more projects could not be opened". Opening the .sln file in plain text shows a second project pointing to a non-existent path. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TheKid.CustomActions.Backup.Solution", "Solution\TheKid.CustomActions.Backup\TheKid.CustomActions.Backup.Solution.csproj", "{B873FFCF-3C9B-4707-AB19-C7C0ED910C54}" EndProject Can this safely be deleted from the solution or is it missing from the zip? Also, the TheKid.CustomActions.Backup.csproj file that is included has post-build copy event as follows: <PostBuildEvent>copy "$(TargetPath)" "C:\Inetpub\wwwroot\wss\VirtualDirectories\spworks80\bin\"</PostBuildEvent> What should this be changed to for my current environment? My primary webapp's \bin directory on the web front end? Thanks for a great solution. Really hoping to be able to use it.

Friday, 28 Nov 2008 03:48 by Vince
Yes yuou can safely ignore that project...it was the solution project to build the WSP which was causing me so many problems initially. The PostBuild just copies the DLL to the project I was testing it on. You can just remove or modify it. --Vince

Tuesday, 2 Dec 2008 05:29 by Anton
In load method, it's better make extended check for visibility: if (string.IsNullOrEmpty(sOriginalRootFolder) || sOriginalRootFolder == lv.TitleUrl.Substring(0, lv.TitleUrl.LastIndexOf("/"))) { Visible = false; return; }

Friday, 5 Dec 2008 01:49 by Pedro
Hi Vince, Thanks for this feature. I want to change the text to Spanish ("Up Folder" to "Subir Carpeta") but I have a problem. When I open the project and i try to generate there is an error with a comand copy.... The dll was generated so i think that there is no problem yet.I dont Know how to make the wsp with the dll. Can you help me? or can you send me the wsp with the text "Subir Carpeta" ?? Thanks for all Vince

Thursday, 11 Dec 2008 02:01 by Pedro
My mail is willsti@gmail.com, if you can send me the wsp.

Wednesday, 7 Jan 2009 07:35 by Navid
Hi Vince and thanks for a useful feature. I have installed it and it works nice. I have only noticed that when I go up to top folder, icon is is still there and when we click it, it showes all folders and all files in subfolders!? Is it a bug you know about or it is my installation that fails? Navid

Wednesday, 7 Jan 2009 08:45 by Navid
Hi Vince and thanks for a useful feature. I have installed it and it works nice. I have only noticed that when I go up to top folder, icon is is still there and when we click it, it showes all folders and all files in subfolders!? Is it a bug you know about or it is my installation that fails? Navid

Thursday, 15 Jan 2009 05:21 by Yann
Thanks a lot for this; just what I needed... Just had to further modify the check for visibility for it to work well on my site: if (string.IsNullOrEmpty(sOriginalRootFolder) || sOriginalRootFolder == lv.TitleUrl.Substring(0, lv.TitleUrl.LastIndexOf("/")) || sOriginalRootFolder.Substring(0, sOriginalRootFolder.LastIndexOf("/")) == SPContext.Current.Web.ServerRelativeUrl || sOriginalRootFolder.Substring(0, sOriginalRootFolder.LastIndexOf("/")) == SPContext.Current.Web.Url) { Visible = false; return; }

Monday, 26 Jan 2009 06:14 by AndrewN
Great stuff. Why there's no up-folder there in the first place I can't imagine! My problem is... initially there is no "Up folder" button at the top level, which is fine. After going into a folder and coming back up to the top level there *is* an "Up folder" button and clicking it causes an error: "The object specified does not belong to a list". I'd live with that, but I know it's going to worry some of our users...!

Monday, 26 Jan 2009 06:40 by AndrewN
Great stuff. Why there's no up-folder there in the first place I can't imagine! My problem is... initially there is no "Up folder" button at the top level, which is fine. After going into a folder and coming back up to the top level there *is* an "Up folder" button and clicking it causes an error: "The object specified does not belong to a list". I'd live with that, but I know it's going to worry some of our users...!

Tuesday, 27 Jan 2009 04:01 by Michael Bakker
Following your instructions posted on 19 Nov 2008, the feature works like a charm. The up folder button is visible in the root folder, but after clicking it (twice...ok) it disappears. No errors. I think our users can live with that, given the (essential) feature they now have. Thanks a lot for sharing this with us!

Tuesday, 10 Feb 2009 08:30 by Enrico
Hi i'm new in SharePoint programming ... how can i make the *.wsp file? Thanks in advance

Thursday, 12 Feb 2009 02:03 by Enrico
Hi i have install and deploy in Sharepoint site the *.wsp file that i have download. I don't see anything in SP, how can i do for show this Custom Action? Thanks in advance

Thursday, 12 Feb 2009 01:32 by Tys
Good article! But you have to use Yann's modification to make it work 100% (Thursday, 15 Jan 2009 05:21 by Yann)

Wednesday, 18 Feb 2009 11:12 by Alex
Thanks for this. It's so bad that people need to write this themselves and that Microsoft didn't include it out of the box. I can also confirm that there is some sort of a bug with the button appearing on the top level after you go back up there. and that clicking twice on it produces an error: "An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Windows SharePoint Services."

Monday, 23 Feb 2009 12:38 by

Sunday, 15 Mar 2009 01:35 by Adeel Khan
Nice Work, Its really a useful feature adn works fine with out anything. Thanks alot.

Tuesday, 24 Mar 2009 01:58 by Eric Wang
It may not be necessary for discussion list if (lv.ViewContentTypeId != "0x") { Visible = false; return; } Does anyone have better idea?

Friday, 27 Mar 2009 08:05 by Danya
Nice Article, But I wanted the "upfolder" button for any specified document library, please tell me how to do it. Thanks, D

Monday, 6 Apr 2009 06:57 by Tanmay Bari
Great article.But has anyone found solution for the "up folder" button appearing on homepage which throws this error. "An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Windows SharePoint Services."

Wednesday, 8 Apr 2009 03:13 by Robert Schmitt
Great work Vince! One question, any idea why this feature isn't visible at my site collection level? I used the following to add and deploy. No errors, I just need to go to all my application sites and and activate the feature at that level - Was just curious if it could be done at the site collection level. stsadm.exe -o addsolution -filename TheKid.CustomActions.Backup.wsp ---followed by--- stsadm.exe -o deploysolution -name TheKid.CustomActions.Backup.wsp -allcontenturls -immediate -allowgacdeployment -force

Thursday, 9 Apr 2009 01:44 by AAron nAAs
---Fix for hiding "Up Folder" when returning to top level--- When drilling into folders, then using "Up Folder" to return back to the top, the "Up Folder" link remains when it should have disappeared. The problem was that going "Up" removed the last segment of the url (after the /), which would ultimately remove the list name. This fix notices when the list name has been removed, and hides the button. --Under this line-- string sNewRootFolder = sOriginalRootFolder.Substring(0, sOriginalRootFolder.LastIndexOf("/")); --Add these lines-- // Hide if back to top level SPList list = (SPList)GetPrivateFieldValue(lv, "list"); string sParentWebUrl = list.ParentWebUrl; if (sNewRootFolder.Length <= sParentWebUrl.Length) { Visible = false; return; } Portions of this (and the original) code use hidden/private fields, which breaks standard object oriented conventions. Just be aware that in the future TheKid's code (and my fix) MAY stop working (though unlikely). Enjoy, -AAron P.S. This code deploys into the GAC, which can be avoided. The permissions needed to install in the webroot\bin instead are shown below. Add these lines as Attributes to the Action class and use WSPBuilder to build the solution with PermissionSetLevel=Minimal and BuildCAS=true: [ReflectionPermission(SecurityAction.Assert, Unrestricted = true)] [SharePointPermission(SecurityAction.Assert, ObjectModel = true)] [SecurityPermission(SecurityAction.Assert, Flags=SecurityPermissionFlag.Assertion|SecurityPermissionFlag.Execution)]

Thursday, 9 Apr 2009 03:17 by Robert Schmitt
Great work Vince! One question, any idea why this feature isn't visible at my site collection level? I used the following to add and deploy. No errors, I just need to go to all my application sites and and activate the feature at that level - Was just curious if it could be done at the site collection level. stsadm.exe -o addsolution -filename TheKid.CustomActions.Backup.wsp ---followed by--- stsadm.exe -o deploysolution -name TheKid.CustomActions.Backup.wsp -allcontenturls -immediate -allowgacdeployment -force

Monday, 13 Apr 2009 09:16 by AAron nAAs
Correction... My previous post only worked with libraries. Use this code chunk to allow use with any type of list. // Hide if back to top level SPList list = (SPList)GetPrivateFieldValue(lv, "list"); string rootiest = list.RootFolder.ServerRelativeUrl; if (sOriginalRootFolder.Length <= rootiest.Length) { Visible = false; return; } NOTE: I've noticed that when adding list web parts to a single page, and clicking around folders within those web parts, the "Up Folder" link gets confused and displays at inappropriate times. So, if you want to use this "Up Folder" feature (thanks Vince), make sure there is only one list per page.

Wednesday, 15 Apr 2009 06:02 by Frank
Thanks for the fix. Could you please update the WSP-file so that it contains the fix?

Thursday, 23 Apr 2009 02:31 by mike
Thanks for this! and thanks to AAron for the fix. Now, how do I turn this source code into a WSP that I can deploy? Lil help?

Tuesday, 5 May 2009 08:14 by Frank
Hi Mike, You can also download a WSP on the top of this page. To create a WSP file from the source code, please download Visual Studio Extensions for Windows SharePoint Services (VSeWSS).

Tuesday, 5 May 2009 08:20 by Frank
Hi Vincent, I'm considering adding a second button to this solution, next to the Up Folder. This is for letting users create an alert for the list/library, instead of having to open the Actions menu. Any tips on how to go about this task? Thanks.

Wednesday, 6 May 2009 02:03 by PetrK
Hi Vincent, Thanks for this feature. But I have discovered following problem: In my document library is following folder structure: /folder1/folder2/folder3 When I'm in folder3 and click "Up folder" then I get to folder2 - it's OK. But when I go back folder3->folder2->folder1 by "Up folder" button then I'm in root of doc library and I see "Up folder" button. So I click on "Up folder" button and all folder from doc library are displayed, ups...it's not good. Can you send me wsp with czech word of Up folder - "Nahoru". I'm not good programator and I'm afraid, that this is out of my abilities. Thanks for help. Petr PS: sorry for my english. I hope that you can understand my problem :-)

Wednesday, 3 Jun 2009 09:52 by Bottomcrawler
I was unable to get the feature to work with the suggestion on adding security so it does not have to be full trust (Aaron nAAS - Thursday, 9 Apr 2009 01:44) . Did anyone else get this to work? I added the following just above public class Action: SPLinkButton. Then followed your suggestion for creating the wsp using WSPBuilder. [System.Security.Permissions.ReflectionPermission(System.Security.Permissions.SecurityAction.Assert, Unrestricted = true)] [Microsoft.SharePoint.Security.SharePointPermission(System.Security.Permissions.SecurityAction.Assert, ObjectModel = true)] [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, Flags = System.Security.Permissions.SecurityPermissionFlag.Assertion | System.Security.Permissions.SecurityPermissionFlag.Execution)] Thanks for the help. Great feature Vince!

Wednesday, 3 Jun 2009 11:15 by Bottomcrawler
I was unable to get the feature to work with the suggestion on adding security so it does not have to be full trust (Aaron nAAS - Thursday, 9 Apr 2009 01:44) . Did anyone else get this to work? I added the following just above public class Action: SPLinkButton. Then followed your suggestion for creating the wsp using WSPBuilder. [System.Security.Permissions.ReflectionPermission(System.Security.Permissions.SecurityAction.Assert, Unrestricted = true)] [Microsoft.SharePoint.Security.SharePointPermission(System.Security.Permissions.SecurityAction.Assert, ObjectModel = true)] [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, Flags = System.Security.Permissions.SecurityPermissionFlag.Assertion | System.Security.Permissions.SecurityPermissionFlag.Execution)] Thanks for the help. Great feature Vince!

Friday, 12 Jun 2009 06:33 by AGoodridge
Has anyone managed to fix the issue shown below?? Monday, 13 Apr 2009 08:16 by AAron nAAs NOTE: I've noticed that when adding list web parts to a single page, and clicking around folders within those web parts, the "Up Folder" link gets confused and displays at inappropriate times. So, if you want to use this "Up Folder" feature (thanks Vince), make sure there is only one list per page.

Friday, 12 Jun 2009 06:50 by AGoodridge
As per previous comment - it also messes around with what is displayed in other webparts on the same page......

Thursday, 9 Jul 2009 01:31 by lsdean
I have been trying to figure out how to re-create the wsp file after adding the fix for the up folder at the root. When I try to upgrade the solution I get an error.

Sunday, 9 Aug 2009 10:15 by Jack Zhang
Hi Vince i have install and deploy in Sharepoint site the *.wsp file that i have download. I don't see anything in SP, how can i do for show this Custom Action? Thanks in advance

Thursday, 20 Aug 2009 03:37 by Peter D
I ran these commands: stsadm.exe -o addsolution -filename TheKid.CustomActions.Backup.wsp stsadm.exe -o deploysolution -name TheKid.CustomActions.Backup.wsp -allcontenturls -immediate -allowgacdeployment -force I can see the feature under Site Features. But I can't see it any of my sites. I would like the Up Folder button to appear in Document and Links lists. I have tried creating a new site. I don't see any errors but I am not sure what else too look for.

Friday, 25 Sep 2009 05:55 by Fernando Gómez
Hello Vincent, thanks for sharing this great code. I have a doubt, however, hope that you can help me. I deployed the WSP to an site that is in English and works like charm. If I try to activate it to a site in Spanish, it doesn't even appear in the feature selection list. What can I do about this? I already localized your code so it now shows properly in such language, but it doesn't seem to be available for a Spanish SharePoint... Thanks in advance, best regards.

Wednesday, 30 Sep 2009 04:32 by Rahul
The solution works in a strange way if there are two document libraries on the page. Initially it appears that it is working but if you do more testing you will see that the click on one back button effects the other. How do you resolve this.

Thursday, 1 Oct 2009 08:03 by Rahul
The solution works in a strange way if there are two document libraries on the page. Initially it appears that it is working but if you do more testing you will see that the click on one back button effects the other. How do you resolve this.



Url

Email

Comments