moss

Sharepoint Webservice 401 error

风流意气都作罢 提交于 2019-12-11 13:15:03
问题 I'm trying to call sharepoint webservices in C# console application. The code works fine when I use my local system's WSS as target application but don't work with another server accessible over the web. Following is my code. Webs service = new Webs(); service.PreAuthenticate = true; service.Credentials = new System.Net.NetworkCredential(login, password); //service.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; service.Url = url + @"/_vti_bin/webs.asmx"; XmlNode sites =

Programmatically Add Site Template (.stp) to SharePoint

岁酱吖の 提交于 2019-12-11 06:05:50
问题 I would like to programmatically add a custom site template (.stp file) to a MOSS team site collection as part of my build process. Can anyone point me towards the best way to do this? Thanks, MagicAndi. 回答1: A way of doing this with a feature would be to use the File element. STP files live in /_catalogs/wt so this type of feature will upload the file. Update: More details in Create Feature to Upload Site Template File (.stp) in MOSS but for completeness here is the elements.xml: <Elements

Retrieve metadata column fields

被刻印的时光 ゝ 提交于 2019-12-11 04:28:34
问题 I need to programmatically retrieve the columns in a Sharepoint document library, in order to set file properties externally to Sharepoint. I've found that setting the metadata property is not hard as long as you already know the name of the column, which I cannot expect users to input themselves. As it does not seem possible to do this through the Sharepoint Web Services I have created my own custom web service so I have access to the Client Object Model. Using this code I am able to

Issue with SQL Stored procedure

对着背影说爱祢 提交于 2019-12-11 04:15:03
问题 I could see the below entries in the ULS log 02/08/2010 14:36:46.12 w3wp.exe (0x15F4) 0x18A0 CMS Publishing 8x0a High AppDomainUnloadListener.RegisterSelf() entered lock(this=15368010) 02/08/2010 14:37:25.59 w3wp.exe (0x15F4) 0x1744 Windows SharePoint Services Database 880i High System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.proc_GetDatabaseInformation'. 02/08/2010 14:37:32.53 w3wp.exe (0x15F4) 0x1744 Windows SharePoint Services Database 98rs High An error occured

Registering an event handler for a single list

梦想与她 提交于 2019-12-10 21:31:43
问题 I have a sharepoint event handler which I want to activate for a single list, not all the lists in the site. How do I go about this? 回答1: Got the answer. We need to run this code, maybe in a console app. I still didn't get how to remove the event handler once it has been added though... string siteUrl = Console.ReadLine(); SPSite site = new SPSite(siteUrl); SPWeb web = site.OpenWeb(); string listName = Console.ReadLine(); SPList list = web.Lists[listName]; string assemblyName = "Issue

How to get out parameters working in SharePoint workflows

强颜欢笑 提交于 2019-12-10 14:14:02
问题 I'm trying to create a custom workflow action with an output parameter for error handling. Working from various examples, I can't get Parameter Direction="Out" to work. Everything seems right, but when I try to assign the output to the "error" variable in SharePoint Designer, it places asterisks around it and flags it as a workflow error. Here is what the action XML looks like: <Action Name="Create Folder" ClassName="ActivityLibrary.CreateFolderActivityTest" Assembly="ActivityLibrary, Version

Creating Sharepoint/MOSS sitemap

ぐ巨炮叔叔 提交于 2019-12-10 11:17:41
问题 I'm trying to create a sitemap for my MOSS publishing site, i've got two approaches but seem to be stuck with both. My first approach is to use the PortalSiteMapProvider, which is already created and nicely cached... PublishingWeb rootWeb = PublishingWeb.GetPublishingWeb(SPContext.Current.Site.RootWeb); //Get the URL of the default page in the web string defaultPageUrl = rootWeb.DefaultPage.ServerRelativeUrl; PortalListItemSiteMapNode webNode = (PortalListItemSiteMapNode)PortalSiteMapProvider

Tell if user exists in SharePoint Group through web service

有些话、适合烂在心里 提交于 2019-12-10 11:15:58
问题 I am working on an internal web application that will use predefined SharePoint groups for determining a user's security level. I have done some research and found SharePoint's "usergroup" web service which has the method "GetUserCollectionFromGroup()" which will list all of the users in a given SharePoint group. The problem I am having is some of the predefined SharePoint groups have Active Directory groups added to them, not the individual users. So, when I call GetUserCollectionFromGroup(

MOSS 404 errors for some users on certain sites, sometimes

你离开我真会死。 提交于 2019-12-10 10:34:31
问题 Everything works fine for most accounts 100% of the time but here and there some users who are able to access a subsite fine one day are greeted with a standard 404 the next. This can last for an hour or two days, it's really inconsistent. I check the iis logs and it says the status is also a 404 for these requests, nothing else looks unusual. Sharepoint logs have nothing for the timestamps either. Correct me if I am wrong but if it was a permission issue an access denied message would be

Data disappearing after ItemUpdate in Sharepoint with Office 2007 documents

半腔热情 提交于 2019-12-10 09:43:21
问题 I have a simple event handler with a ItemAdding event that changes a column value that I need in the ItemUpdated method. After uploading a word 2007 document (*.docx, *.pptx or xlsx) the value of the column is changed, but when I protect the document the value of the column disappears in the ItemUpdated method. This only happens for office 2007 documents, other files don't clear the value. The event handler runs in a document library in MOSS 2007. Thanks 回答1: We have the same issue. It