sharepoint

High CPU usage when deploying content types via a SharePoint feature

梦想的初衷 提交于 2019-12-23 13:39:23
问题 I'm creating a SharePoint feature which will be used to deploy some content types (and their custom columns/ fields) into a a new SharePoint site. I've used an external tool to generate the CAML for the content types (Andrew Connell's custom STSADM commands) but when I put them into the feature and run it I hit a problem. The feature activates like I expect, but when I try and view the Site Content Types (/_settings/mngctypes.aspx) the CPU shoots up to 100% usage (w3wp) and stays there. Has

How to debug Sharepoint solution/feature through Visual studio?

让人想犯罪 __ 提交于 2019-12-23 13:32:26
问题 Recently I tried to install a webpart through wspbuilder utility to the Sharepoint Site. I have created, built and deployed a project to the 12 hive. After that installed the solution through Cental Administration Site and activated in the site collection. I just wonder how can I debug the complex feature/solution ? Because both processes (build-deploy and activate) totally independent, how can I attach a process with the worker process ? 回答1: In the WSPBuilder context menu there is an option

How to debug Sharepoint solution/feature through Visual studio?

依然范特西╮ 提交于 2019-12-23 13:32:03
问题 Recently I tried to install a webpart through wspbuilder utility to the Sharepoint Site. I have created, built and deployed a project to the 12 hive. After that installed the solution through Cental Administration Site and activated in the site collection. I just wonder how can I debug the complex feature/solution ? Because both processes (build-deploy and activate) totally independent, how can I attach a process with the worker process ? 回答1: In the WSPBuilder context menu there is an option

Get site URL based on GUID? (SharePoint)

て烟熏妆下的殇ゞ 提交于 2019-12-23 13:23:17
问题 is there any code example out there that shows me how to get the url for a site if I know the guid? Currently I have this code to get all sites within the site collection. private void getSites() { SPSite oSiteCollection = SPContext.Current.Site; SPWebCollection collWebsite = oSiteCollection.AllWebs; for (int i = 0; i < collWebsite.Count; i++) { ddlParentSite.Items.Add(new ListItem(collWebsite[i].Title, collWebsite[i].ID.ToString())); } } Thanks in advance. 回答1: SPSite has a GUID constructor

Sharepoint Foundation master pages on subsites

空扰寡人 提交于 2019-12-23 13:15:44
问题 Using Sharepoint Foundation 2010 I've edited v4.master, added a ref to a new CSS file, saved the changes and they are applied to the home site no problem. However when I create a subsite it uses the old version of v4.master for some irritating reason. I'm vaguely aware that some of the publishing features from SPS are not included in SPF so lots of the online advice isn't relevent (?) If there is a way to make new subsites inherit the new V4.master I'd be very grateful. 回答1: This is only

How to schedule a call to an MS Access macro?

孤街浪徒 提交于 2019-12-23 12:49:23
问题 I'm looking to schedule a call to an MS Access macro. This macro uses a .csv file (that I get daily) to update a SharePoint calendar. Could someone please explain how to schedule a daily call to run this macro (I'm using Access 2003, say EventsCalendar.accdb and macro called Run1) on my Windows 7 machine? I need to automate it to run every morning. Thanks! 回答1: Write a VBScript script that can run the macro straight from Windows. You can do this by first creating an Access application object

Can I use more than one master page on a sharepoint site?

折月煮酒 提交于 2019-12-23 12:31:04
问题 I have been asked to modify a home page to a completely new design, all other pages will remain exactly the same. I am a little green when it comes to sharepoint. I have created the masterpage, however when i choose set as default master page or set as customer masterpage it changes for the entire site. I would only like to change the home page. The only option I have come across at this point would seem to be Detach from page layout which would not be ideal as the remainder of the site may

Custom Fields Only From Sharepoint List

霸气de小男生 提交于 2019-12-23 12:18:24
问题 Is it possible to loop through field collection of a sharepoint list and retrieve only our custom fields and not the sharepoint built-in fields. using (SPSite site = new SPSite("http://localhost/")) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists["My List"]; foreach (SPField field in list.Fields) { //We also get sharepoint built-in column here. And we don't want that, just our //custom created fields. } } } Any help would be appreciated. Thanks 回答1: You have two options: Check

Querying list items and using SharePoint web services vs the object model

丶灬走出姿态 提交于 2019-12-23 11:23:29
问题 My company is looking into writing a custom application that will need to perform many list item queries across multiple site collections. It will need to run for WSS 3.0 and it 'would be nice' if it worked on WSS 2.0 as well. It won't be designed for MOSS/SPS but again it 'would be nice' if it worked on these platforms. There is no restriction on which .NET version should be used for the solution. For this type of application, what would be better: the object model/API or SharePoint web

Querying list items and using SharePoint web services vs the object model

南楼画角 提交于 2019-12-23 11:23:05
问题 My company is looking into writing a custom application that will need to perform many list item queries across multiple site collections. It will need to run for WSS 3.0 and it 'would be nice' if it worked on WSS 2.0 as well. It won't be designed for MOSS/SPS but again it 'would be nice' if it worked on these platforms. There is no restriction on which .NET version should be used for the solution. For this type of application, what would be better: the object model/API or SharePoint web