RE: [OzMOSS] VS Project type for feature - a few questions
Use '.Recycle' first off! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Noone Sent: Monday, 1 December 2008 10:57 AM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] VS Project type for feature - a few questions Many thanks for all the advice so far. I'm hoping it'll just keep coming! J I've successfully deployed my solution and activated the feature for my site collection. All my libraries now have the Delete All action (security trimmed) and Copy Item ECB command. Nice! The Delete All Items action works great. In fact it works too well! I was expecting some kind of confirmation, or at least to find the deleted items in the user recycle bin. But it seems the item is completely removed and not retrievable. K I fear my code is far too simplistic/brutal and possibly quite dangerous in its current state. Ideally I'd like to add a confirmation dialog (at least) that perhaps includes a checkbox to Permanently Delete All Items, or default to moving them to end-user or admin recycle bin. Can the following source be easily modified to accommodate this? à SOURCE - DeleteAllListAction.aspx % SPWeb oWeb = SPContext.Current.Web; SPList oList = oWeb.Lists[new Guid(Context.Request[List])]; oWeb.AllowUnsafeUpdates = true; for (int c = oList.Items.Count - 1; c = 0; c--) oList.Items[c].Delete(); Context.Response.Redirect(oWeb.Url + / + oList.RootFolder.Url); % All advice much appreciated. Am also having some trouble with the Copy Item command but am changning all this so it's handled by a cookie and will allow pasting to a different location. Regards, Paul From: Paul Noone [mailto:[EMAIL PROTECTED] Sent: Friday, 28 November 2008 2:40 PM To: Clayton James Subject: RE: [OzMOSS] VS Project type for feature - a few questions Thanks again. Was just doing so. J Regards, Paul Online Developer, ICT CEO Sydney From: Clayton James [mailto:[EMAIL PROTECTED] Sent: Friday, 28 November 2008 3:37 PM To: Paul Noone Subject: RE: [OzMOSS] VS Project type for feature - a few questions MS have release a user guide on using VSeWSS so make sure you download and have a look. Lots of nice examples to get you started. http://www.microsoft.com/downloads/details.aspx?FamilyId=A8A4E775-074D-4451-BE39-459921F79787displaylang=en cheers CJ From: Paul Noone [mailto:[EMAIL PROTECTED] Sent: Fri 28/11/2008 3:29 PM To: Clayton James Subject: RE: [OzMOSS] VS Project type for feature - a few questions Cheers mate. Much more user-friendly than AC's article which I'd already given myself a headache over. The lack of offical documentation for this sort of stuff is really quite aggravating. Cheers, Paul From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton James Sent: Friday, 28 November 2008 2:53 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] VS Project type for feature - a few questions Hi Paul VSeWSS doesn't have an exact template for Custom Actions. You first create a Empty sharepoint project and then add a new Module template. I have an example here. This example creates a custom action for a code behind page in sharepoint. http://claytonj.wordpress.com/2008/04/13/sharepoint-code-behind-demo-using-vsewss11/ HTH CJ From: [EMAIL PROTECTED] on behalf of Paul Noone Sent: Fri 28/11/2008 11:43 AM To: listserver@ozMOSS.com Subject: [OzMOSS] VS Project type for feature - a few questions Hi all, I finally have some developer questions! This is my first foray into creating a feature for MOSS so please be gentle. J I have created a custom list action and a 'copy item' command for the ECB and would now like to deploy them with a single feature. I now have the following files and folder structure: CopyDeleteAll.ListActions\12\TEMPLATE\FEATURES\CEOCopyDeleteAllListAction\feature.xml CopyDeleteAll.ListActions\12\TEMPLATE\FEATURES\CEOCopyDeleteAllListAction\actions.xml CEO.CopyDeleteAll.ListActions\12\TEMPLATE\LAYOUTS\myCustomPages\CopyListItemECB.aspx CEO.CopyDeleteAll.ListActions\12\TEMPLATE\LAYOUTS\myCustomPages\DeleteAllListAction.aspx So far so good. I would now like to wrap everything up in a solution but WSPBuilder Extensions expects a project file. So... Questions: - What type of project file should I start with for something like this? I have the VSeWSS for VS 2008 installed. - Do I install on the application server or (one of) the web front ends? - Can I set the scope to Site? - Is there anything preventing me from just copying the files to their destination manually? - Does this require an IIS reset? - Is there anything else I should know? Thanks in advance, Paul --- OzMOSS.com - to
RE: [OzMOSS] RE: VS Project type for feature - a few questions
I liked wspbuilder to start from (in VS 2005), but once you've got the idea, it's just as easy (and more controllable as I've had stuff released I didn't want) to edit the features, elements, onet, solution ddf and manifest xml files yourself - none of the 3rd part or MS solutions are perfect, so you'll probably end up editing what the builders give you for some requirements anyway - unpack some CABs and have a look at what they contain. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Noone Sent: Friday, 28 November 2008 12:46 PM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] RE: VS Project type for feature - a few questions Thanks Jeffrey and Caroline. So what do people recommend for solution generation? STSDEV or WSPBuilder. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeffery Tsui Sent: Friday, 28 November 2008 1:58 PM To: listserver@ozmoss.com Subject: Re: [OzMOSS] RE: VS Project type for feature - a few questions You can add the instruction in manifest.xml that controls whether WSS will run IISRESET on each front-end Web server after the output solution package has been deployed, upgraded, or retracted. sample manifest.xml Solution SolutionId=24F91DED-8BA7-4633-8BA0-4C9B2A4387D7 ResetWebServer=True xmlns=http://schemas.microsoft.com/sharepoint/; !--TEMPLATE files-- TemplateFiles TemplateFile Location=IMAGES\HelloWorld\AfricanPith32.gif / /TemplateFiles /Solution STSDEV is very useful in terms of building sharepoint solution, http://msdn.microsoft.com/en-us/magazine/cc337895.aspx Cheers Jeffery On Fri, Nov 28, 2008 at 1:38 PM, Caroline Specker (AU) [EMAIL PROTECTED] wrote: Hi Paul, I will have to skip your first question about wsp builder, but i'm sure someone else will answer that one for you. As for the rest: To clarify, a solution is a collection of features that you install onto a SharePoint farm. Once you have your solution file (eg whatever.wsp) you install it by running the stsadm command addsolution (http://technet.microsoft.com/en-us/library/cc263162.aspx). You can run this on a server that has central admin on it. Because you are installing a solution it will automatically install each feature in the solution onto every web front end on the farm. When you create a feature you can set the scope for the feature to Web, Site, WebApplication or Farm. Look at this link to see what elements in a feature can be scoped at different levels: (http://msdn.microsoft.com/en-us/library/bb861828.aspx). A custom action can be scoped at any of these levels. Why do you want to copy the files manually when you can run a simple command line to do it properly for you? If you were to go down the path of installing individual features that were not wrapped up in a solution you would have to copy the files to their destination manually, and then run a command on each WFE to install the feature, but solutions remove that requirement. I believe that installing a solution will do an iis reset automatically for you. Sombody please correct me here if I am wrong. Other things you should know: Once you have installed the solution that means it is available in Central Admin. You still need to deploy the solution to sites. This effectively makes the features inside the solution available to the areas you deploy it do. You can deploy the solution either through stsadm deploysolution (http://technet.microsoft.com/en-us/library/cc262459.aspx), or from Central AdminOperationsSolutions Management. Hope this helps. Caroline From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Paul Noone [EMAIL PROTECTED] Sent: Friday, 28 November 2008 11:43 AM To: listserver@ozMOSS.com Subject: [OzMOSS] VS Project type for feature - a few questions Hi all, I finally have some developer questions! This is my first foray into creating a feature for MOSS so please be gentle. J I have created a custom list action and a 'copy item' command for the ECB and would now like to deploy them with a single feature. I now have the following files and folder structure: CopyDeleteAll.ListActions\12\TEMPLATE\FEATURES\CEOCopyDeleteAllListActio n\feature.xml CopyDeleteAll.ListActions\12\TEMPLATE\FEATURES\CEOCopyDeleteAllListActio n\actions.xml CEO.CopyDeleteAll.ListActions\12\TEMPLATE\LAYOUTS\myCustomPages\CopyList ItemECB.aspx CEO.CopyDeleteAll.ListActions\12\TEMPLATE\LAYOUTS\myCustomPages\DeleteAl lListAction.aspx So far so good. I would now like to wrap everything up in a solution but WSPBuilder Extensions expects a project file. So... Questions: - What type of project file should I start with for something like this? I have the VSeWSS for VS 2008 installed. - Do I install on the application server or (one of) the web front ends? - Can I set the scope to Site? - Is there
RE: [OzMOSS] MOSS Content deployment Errors
I had huge fun (not) with the import/export API trying to do something similar but in code. I’ve NOT used the Content Deployment Manage/Settings pages, but these are the thing I found out using the API directly: Usually inconsistencies in the two structures were causing me problems. If that doesn’t seem to be the case, other things to look at: The import/export classes have a logfilelocation property – I presume you have looked at those logs, (but might just be the same as the job report)? The classes have a large number of options – things like ExcludeDependencies on the export and RetainObjectIdentity on the import may be tripping you up. You can break up the export/import manually to test things in code– maybe try the list on its own to see what happens? You can also use STSADM to test things, although many of the properties aren’t available (probably STSDEV has these). Make sure you are up to date with patches/releases in source and destination, and I also seem to remember there is a hotfix to do with content deploy if appropriate. Hope something here helps. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Saikovski Sent: Tuesday, 6 May 2008 1:44 PM To: listserver@ozMOSS.com Subject: [OzMOSS] MOSS Content deployment Errors Dear All, I am having a fun time trying to get content deployment working between a staging and production server and was wondering if anyone else has found any gotchas or potential settings I have missed getting this working. I performed the following steps: 1. On the destination server farm, create an empty site collection based on the Blank Site template to receive the initial deployment job. 2. On the destination farm, on the Content Deployment Settings page in Office SharePoint Server 2007 Central Administration, configure the farm to accept incoming deployment jobs, assign a front-end server as the import server to manage incoming deployment jobs, and specify whether or not to require encryption on the connection between the source and destination farms. 3. On the source farm, on the Content Deployment Settings page, assign a front-end server as the export server to manage outgoing deployment jobs. 4. On the source farm, on the Manage Content Deployment Paths and Jobs page in Office SharePoint Server 2007 Central Administration, create one or more deployment paths. 5. On the source farm, on the Manage Content Deployment Paths and Jobs page, create one or more deployment jobs for each path. 6. Run the initial deployment job to initiate the content on the destination farm. 7. If the path does not deploy all security information, then on the destination farm, create the initial set of users, roles, and permissions on content and sites. From this article: http://technet2.microsoft.com/Office/f/?en-us/library/edcdacca-8013-460e-95a0-d2b83b6cc7ef1033.mspx and also followed this one: http://technet.microsoft.com/en-us/library/cc261732.aspx The content deploy job runs and the .cab files get created and sent up to the production server no worries. The error I keep getting is that the list ‘/contact’ exists and cannot be overwritten during import. This is weird, especially in light of the fact that I have created a blank site collection to do the initial deployment drop. I have even tried to do an export and import to get the server all setup with master pages etc and I get an even stranger error when trying to do a deploy. I have heard of problems with this technology but didn’t figure it would be this troublesome. I am using domain admin service accounts to perform the deploy so I don’t think this is a security issue. Do tools like Tzunami and Echo get around this? Any thoughts would be appreciated. Anything obvious I should be checking for? I have checked the event logs etc and they aren’t very helpful. Cheers, Aaron Aaron Saikovski Senior Solutions Specialist – Information Worker Groove MVP M: +61 (0) 410 480 971 P: 02 9448 7300 F: 02 9475 0417 A: Level 21, 8-20 Napier Street, North Sydney NSW 2060 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: www.sdm.com.au http://www.sdm.com.au/ strategic data management Consult ♦ Develop ♦ Integrate ♦ Deliver Microsoft Application Infrastructure Development Partner of the Year 2007 Business Performance Management l Business Consulting l Customer Relationship Management Enterprise Project Management l Information Worker l Systems Integration This email and any files transmitted with it are confidential and are only for the use of the person to whom they are addressed. If you are not the intended recipient you have received this email in error and are requested to delete it immediately. Any opinion expressed in this e-mail may not necessarily be that of Strategic Data Management Pty Ltd. Please
RE: [OzMOSS] Multiple site collection navigation
Fixed. Specifically, the issue I got was: Could not bind to the 'EncodedName' property (specified by TextField) while data binding TreeView. Please check the Bindings fields. Using: SPnavControls:PortalSiteMapDataSource ID=SPPortalSiteMapDataSource Runat=server SiteMapProvider=CurrentNavSiteMapProvider EnableViewState=true StartFromCurrentNode=false StartingNodeOffset=0 ShowStartingNode=true / SPwebControls:SPTreeView ID=SPTreeViewSiteMap runat=server DataSourceID=SPPortalSiteMapDataSource UseInternalDataBindings=false ExpandDepth=3 / I tried an encoded provider which didn't help, but setting the UseInternalDataBindings property to false fixed things for me. Onto my custom provider now. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of STRINGFELLOW Mike (Con) Sent: Wednesday, 7 May 2008 9:41 AM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] Multiple site collection navigation Excellent stuff. Do you have an example of binding this custom site map provider to a control in a page layout in VS, such as a tree view? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ishai Sagi Sent: Wednesday, 7 May 2008 8:11 AM To: listserver@ozMOSS.com Subject: RE: [OzMOSS] Multiple site collection navigation I was suggesting that you develop a custom SiteMapProvider, most probably by inheriting from SPSiteMapProvider or PortalSiteMapProvider Look at Implementing Site Map Providers in http://msdn.microsoft.com/en-us/library/bb897739.aspx which has a nice code sample how to override PortalSiteMapProvider and add items to it - your custom code can then add site collections to it. It can be a bit complex at first, but I managed to do what you are after in a few hours. The main trick here is security and caching (make sure that users only see the menu items they are allowed to see, and cache the data on a user level cache). From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kanwartej Singh Basrai Sent: Wednesday, 7 May 2008 09:40 AM To: listserver@ozmoss.com Subject: Re: [OzMOSS] Multiple site collection navigation Ishai, Thanks for the response. Just to clarify, When you say navigation providers, do you mean writing a custom sitemap file and hooking that up in the web.config file as per this example http://blah.winsmarts.com/2008-1-Implementing_Consistent_Navigation_acro ss_Site_Collections.aspx Or do you mean, writing a feature that implements SpNavigationProvider and override methods like getchildnodesetc. Not sure pro's and cons about either approach but i could only find these 2 ways of achieving this. kind regards Tej On Tue, May 6, 2008 at 4:55 PM, Ishai Sagi [EMAIL PROTECTED] wrote: Tej, No need to write your own navigation control - you need to write your own navigation provider and connect it to the built-in control. There are many samples for navigation providers on the web - and it is pretty easy to modify them to do what you want. I was thinking of writing about this, but never got the time. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kanwartej Singh Basrai Sent: Tuesday, 6 May 2008 16:01 PM To: listserver@ozmoss.com Subject: [OzMOSS] Multiple site collection navigation Hi Guys, We have a web application which has multiple site collections. The client wants a navigation which shows consistent navigation on all the site collections. So instead of having Home and sub sites in the navigation they want to display all the site collections. Is there an easy way to do this in moss or do you have to write your own navigation control? Would really appreciate any help i can get. Thanks in advance Tej --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com http://mailenable.com/ No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.23.9/1416 - Release Date: 5/05/2008 17:11 PM --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com http://mailenable.com/ --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.23.9/1418 - Release Date: 6/05/2008 17:17 PM --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com --- OzMOSS.com - to unsubscribe from this list, send a message back
RE: [OzMOSS] Create a SharePoint List from a Solution deployed ListTemplate
What's a type 115? If it's your own new list template type, I think they recommend you use a unique number greater than 1. http://www.sharepointblogs.com/mossms From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Thake Sent: Wednesday, 27 February 2008 1:42 PM To: listserver@ozmoss.com Subject: [OzMOSS] Create a SharePoint List from a Solution deployed ListTemplate I've created a Solution with a feature file and an elements.xml file with this definition: ?xml version=1.0 encoding=utf-8? Elements xmlns=http://schemas.microsoft.com/sharepoint/; ListTemplate Name=CPMiningInvoiceList DisplayName=CP Mining Invoice List Type=115 Description=This is the invoice list. BaseType=0 OnQuickLaunch=FALSE SecurityBits=11 / /Elements and then created a schema.xml file. I did this by running an export from the SharePoint Solution Generator pointing it at a brand new created SharePoint Form Library. I created the wsp from this and installed it on my site. I then manually created the List based on the ListTemplate. When I did this I received an error in the Web interface: Cannot complete this action. Please try again. at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPo st(String bstrUrl, String pbstrGuid, String pbstrNextUrl) at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, String pbstrGuid, String pbstrNextUrl) Further investigation in the logs found an error: Application error when access /_layouts/new.aspx, Error=Cannot complete this action. Please try again. at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPo st(String bstrUrl, Stringamp; pbstrGuid, Stringamp; pbstrNextUrl) at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, Stringamp; pbstrGuid, Stringamp; pbstrNextUrl) Searching Google there was hardly anything on this error! Can anyone give me some advice here? Thanks, Jeremy Thake http://wss.made4the.net/ --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net --- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
RE: [SPAM] RE: [OzMOSS] MOSS V-Motio
I vaguely remember that work Paul – but I’m amazed you’ve got all those figures in your head still! I think Sezai might be able to attest to any general issues using a well set up SQL/SharePoint/SAN infrastructure. If funds allow, my experience has been that a well configured vmware solution is preferable given all the manageability benefits, with few issues arising. Mike MOSSuMS From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, 6 February 2008 2:50 PM To: listserver@ozmoss.com Subject: Re: [SPAM] RE: [OzMOSS] MOSS V-Motio (put my CIsco hat on for a sec).. In terms of IO and bottlenecks I did some work on this a few years back when we contractually had to guarantee a minimim media streaming throughput on a gigabit network. Once you go beyond 100mbit (and any virtual server infrastructure likely uses several teamed gigabit adapters), the PCI bus kicks in as an IO constraint. But PCI-X specification took care of that as it at the time did 133MB/s or 1064Mb/sec (gigabit speed - and this was 6 years ago so and is faster now). So once you move past bus speeds, for us, disk IO constraints kicked in at around 5-600mbit/sec. Of course, there are lots of dependencies here, but we were testing on seriously good hardware (for its time) on large compaq raid arrays. If we streamed data from memory, we acheived 992mbit on a gigabit network. If we read from disk it went down to 600-650mbit. Even based on figures from 6 years ago, 600mbit is plenty to handle a heavy load SQL server for most sites :-) Now VM or no VM, if the disk infrastructure is on a SAN, we know that PCI bottlenecks are unlikely to become an issue and fibre channel is 2 or 4 gigabit. You could still hit constraints if enough VM's worked hard enough at he same time, but for the most part, it all comes down to the disk infrastucture you have. I do know of companies that run production VM's because they have all of the same advantages of using VM's for Dev, but they always put their data on a fast, redundant disk infrastructire. They planned things properly by estimating future peak I/O requirements of their VM's and ensured that the VM hardware was sized for those peak loads. Thus I don't see a problem with SharePoint/SQL on production VM's when properly sized and planned for. In fact I know IBM engineers who swear by this arrangment for Exchange as well (and Microsoft definitely does not support exchange on VM's) regards Paul On Wed Feb 6 13:26 , Dave Porter [EMAIL PROTECTED] wrote: Mainly networking issues and high proc and IO's that choke a virtual server. You need one heck of a virtual environment for a SQL server. Since MOSS makes many more calls than the previous version of SharePoint, SQL utilization goes up. Dave P. Date: Wed, 6 Feb 2008 14:06:46 +0900 From: [EMAIL PROTECTED] To: listserver@ozmoss.com Subject: Re: [OzMOSS] MOSS V-Motio Dave is there any way you could elaborate more on not seen SQL do well just out of interest. Thanks Jeremy Thake [EMAIL PROTECTED] javascript:top.opencompose('[EMAIL PROTECTED]','','','') On Feb 6, 2008 1:55 PM, Dave Porter [EMAIL PROTECTED] javascript:top.opencompose('[EMAIL PROTECTED]','','','') wrote: I have seen several issues with MOSS when you virtualize SQL. It is not recommended. You can virtualize the WFE's, but I have not seen SQL do well in a virtual environment. What are the specs on the virtual environment? Dave P. Subject: [OzMOSS] MOSS V-Motion Date: Wed, 6 Feb 2008 10:03:08 +1100 From: [EMAIL PROTECTED] javascript:top.opencompose('[EMAIL PROTECTED]','','','') To: listserver@ozMOSS.com javascript:top.opencompose('listserver@ozMOSS.com','','','') Hi all, We currently have a client who has a virtual SharePoint environment. Virtual Web/Application Server and a virtual SQL Server. We are seeing, when the web/application server is v-motion, a whole stack of database connectivity errors appear in the event log, the SharePoint logs bloat to massive size and owstimer.exe is peaking out. My initial investigation has revealed that while v-motion is happening, network connectivity between the web/application server and the SQL server is lost. Has anyone encountered this before, as this seems like a common setup and if so, is there a work around for this (we have currently set the web/application and SQL server not to v-motion and be static). Thanks, - Adelaide SharePoint User group - http://www.aspug.org.au http://www.aspug.org.au/ (Comming Soon!) - My Blog: http://www.danielbrown.id.au