The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
41 views

How to impersonate Farm Administrator in server object model?

We are using SharePoint Foundation 2010. We are creating content database and site collection using server object model. We have more than 1000 users in SharePoint. As content database and site ...
-1
votes
1answer
111 views

System.InvalidOperationException: Operation is not valid due to the current state of the object.?

I am developing asp.net mvc application for SharePoint Foundation 2010. asp.net application is hosted on one machine and SharePoint Foundation 2010 is hosted on another machine. I have deployed one ...
0
votes
2answers
100 views

Where should custom Wcf service for SharePoint 2010 resides?

I want to create Wcf service for SharePoint 2010. I strictly want to use server object model. I have gone through two articles http://www.dotnetcurry.com/ShowArticle.aspx?ID=760 ...
0
votes
0answers
66 views

sharepoint 2010 object model authentication

I'm trying to use sharepoint 2010 object model authentication to access ms 365 sharepoint 2013 site. I'm getting a error while trying to authenticate. "403 forbidden access is denied" I'm using ...
0
votes
1answer
292 views

Unable to access sharepoint 2013 site using COM javascript

I have requirement to work on COM Javascript in SharePoint 2013. I have created one ".aspx" page and included script files to access SharePoint site & list using Javascript. However, I am not able ...
0
votes
0answers
44 views

where i can find trace for item.systemupdate()

I am working on a project which was initially developed by someone else. few of my list items are getting updated but i am not getting anything in version history. I believe that some schedule job is ...
0
votes
0answers
288 views

SharePoint 2010 Workflow development with Visual Studio

I'm creating a workflow that starts with a user filling a form. The form contains a number of fields like first name, last name, a choice field with say choices A, B and C. Depending on the choice, ...
0
votes
1answer
425 views

How to get changes from sharepoint 2010 client object model?

Below is the code: ClientContext context = new ClientContext("http://SPSite"); context.Credentials = new NetworkCredential("user", "pwd", "domain"); ChangeQuery cq = new ...
1
vote
1answer
701 views

Set programmatically created XML document to open with InfoPath template in SharePoint

I'm having a problem getting XML documents that I am creating programmatically and adding to a form library in SharePoint to open with an InfoPath template instead of just opening as plain XML ...
1
vote
2answers
698 views

how can I Obtain ClientContext in office 365 with fixed credentials (do not prompt user)

I am prototyping a tool that runs every few minutes and goes off to a office 365 site and to retrieve and then process information. At the moment I have started with the MSDN guide "Remote ...
0
votes
1answer
902 views

How to get a single listitem field value?

I have a SharePoint list with Roles as the columns(Admin, Viewer, Manager) and Document Types as the items (Word docs, PPtx docs, excel docs). I have filled in the corresponding values with the ...
0
votes
1answer
119 views

Is there a way get lookup fields in random lists associated with a specific list programmatically?

I have a sharepoint list, for example it is named as SourceList. I also have several lists which are associated to SourceList via lookup fields. I don't know the names or number of these lists\ they ...
2
votes
1answer
823 views

How to detect page refresh in .net

I have a Button_click event. While refreshing the page previous Postback event is triggering again. How to identify page refresh event to prevent postback action. I tried below code to solve it. ...
0
votes
1answer
205 views

Develop Infopath 2010 with object model locally without SharePoint 2010

I am on windows 7 enterprise I have infopath 2010 installed my pc and have used it before But due to my requirements I have to use object model to write code and it requires I add a reference to ...
7
votes
1answer
562 views

Configuring a sharepoint site subscriptions user account directory path with the object model

I'm working on multi tenant provisioning in sharepoint and I'm having trouble figuring out if you can set the user account directory path for a site subscription using the sharepoint object model. I ...
0
votes
2answers
4k views

Need Sharepoint like modal pop-up window

I need to show Sharepoint 2010 like pop-up window when clicked on a link in grid view. Once the modal pop-up displayed and user selected the Save button data base should be updated with given values ...
0
votes
1answer
716 views

Is web.AllowUnsafeUpdates default value always false in Sharepoint?

this is my sample code: SPWeb web = SPContext.Current.Web SPList list = web.Lists["TestList"]; try { web.AllowUnsafeUpdates = true; list.Title = "Test"; list.Update(); } finally { ...
0
votes
2answers
1k views

How do I get the email address of the author of a SharePoint list item?

As title says, I have access to the current listitem - and it's easy enough to get the author/created by name - but how do I retrieve the e-mail address of the author in C# from the object model? ...
0
votes
1answer
256 views

Infopath form code : get folder in which a web-enabled form is stored

I have a web-enabled Infopath form stored in a document set. Is is possible, in c# code inside the form, to get the folder (document set) inside of which the actual form is stored ? Thanks
0
votes
2answers
555 views

The settings for this list have been recently changed. Refresh your browser before editing this list

I have a C# application from which I am uploading documents to a SharePoint 2010 Document Library (with version history enabled). The line of code I am using to upload the document is the one below: ...
0
votes
1answer
642 views

Sharepoint 2010 - Object Model - Download DocumentSet Programmatically

A code snippet of how i can download a documentSet programmatically using the sharepoint object model would really help. What I am trying to do is - Given the sharepoint site, log in with the user ...
0
votes
1answer
643 views

SharePoint And Excel Integration

I have an interesting problem. I have several Excel sheets that our users use to submit requests. We now want to automate them. We have created custom web parts and lists and got rid of the excel ...
0
votes
3answers
326 views

Reading sharepoint site through object model within ASP.NET website produces errors

Scneario : Webserver with ASP.NET site. Installed Sharepoint 2010 SQL Express edition on the same server. SQL resides on the same box. The ASP.NET runs on appPool1 with identity "SiteUser". The ...
2
votes
4answers
2k views

Sharepoint 2010 - make Title, Description and Keyword fields as required fields in Picture Library using server-object-model

I'm creating a Sharepoint feature, this feature has an event receiver associated to it. In the event receiver, I'm creating a Document Library and Picture Library using server-side object model. I'm ...
0
votes
2answers
686 views

SharePoint 2010: Removing Workflow from the list using SP Object Model

Could you please point me to some good articles/links that explains how to remove a Workflow from the list using SP Object Model? I am not having much luck with Google today! Thanks a lot for ...
0
votes
1answer
2k views

SharePoint 2007 : How to programmatically upload binary file into Document Library?

I encounter a problem to programmatically create an item into Document Library in SharePoint 2007. Below is my code fragment, perhaps you might able to point out what is my error: ...
0
votes
1answer
514 views

How to Creatie Multiple Site Collections and Subsites under a already Created fresh Web Application. Sharepoint 2010

I have a fresh web application already created. Now I just want to Programmatically add Site Collections and Subsites to the Web Application using the console application. Any Help appreciated. ...
0
votes
2answers
658 views

Copying Content Types across SharePoint servers

I am developing a Windows application that will allow SharePoint administrators to copy a content type from one server to another (across two SharePoint environments). I am at a point where I have the ...
0
votes
1answer
516 views

SPListItem.Update() throws exception when trying to update Title. 255 char limit issue with encoding

It seems that I have an issue with encoding. The field max width is 255 chars and the title is indeed 255 chars, however there are some characters in the title (quotes and angle brackets) that are ...
5
votes
1answer
2k views

Programmatically enumerating Web Part Zones of a Publishing Page Layout

I have a situation where a class I have is passed a PublishingPage instance and I want to enumerate any and all web part zones that are used in the Layout Page for this page. This is proving tough. ...
1
vote
1answer
3k views

How to get all sites and sub-sites in SharePoint and access an image library/list?

How to get all sites and sub-sites in SharePoint and access an image library/list? I am looking forward to achieve this via the SharePoint object model. Inside each site or subsite I want to access ...
0
votes
1answer
476 views

Sharepoint Object Model vs WebServices

I had created a xml query that I was sending to my sharepoint search service which was returning some results. I then pulled the SQL query text out of it and started using it with the object model ...