The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

2
votes
1answer
1k views

System.ServiceModel.ServiceActivationException “A relative URI cannot be created because the 'uriString' parameter represents an absolute”

The client object model code in my application is throwing the following exception. How to solve it?. System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be ...
1
vote
1answer
280 views

Workflow gives “Error Occured” when uploading file to document library

I am mapping one xml document to another. When it is done, I am uploading that document to a document library. Here is the code that does that: MemoryStream ms = new MemoryStream(); ...
2
votes
2answers
33 views

Get List with MDS (Minimal Download Strategy) enabled

Consider the following code: string srcUrl = Request.Params["sourceUrl"]; SPList list = SPContext.Current.Web.GetList(srcUrl); with MDS Feature disabled: string srcUrl = ...
0
votes
1answer
33 views

How to get C# to recognize argument passed through PowerShell

I'm using PowerShell to call C# code to turn list alerts on or off on a specific list. When I try to use [AlertsOnOff1.onOff]::Main("off") to call the Main method and pass the arugment of "off"the ...
0
votes
0answers
25 views

Programmatically Upload documents to SharePoint so that Document Template is used

I know that the Content Type Document Template is best suited when creating a new document in SharePoint, but is there simple way to upload documents programmatically and getting the look and feel to ...
1
vote
2answers
67 views

Site Collection Allwebs for current user

I need to iterate to all the web of a site collection using the current user permission. I tried: foreach (SPWeb web in site.AllWebs) { if ...
0
votes
1answer
269 views

SharePoint Claims authentication on external zone : Could not retrieve the IIS Settings. Parameter name: context

SPClaimsUtility.AuthenticateFormsUser(Context.Request.UrlReferrer, txtEmail.Text, txtPassword.Text); This authenticates the user properly and lets me through to a page that needs authentication on ...
2
votes
2answers
491 views

SPSite.Usage.Storage And SPSite.StorageManagementInformation Are Returning Different Values

When every I use SPSite.Usage.Storage and I use SPSite.StorageManagementInformation with to retrieve all the documents for the Site Collection then I sum the sizes of all the documents then I get a ...
1
vote
1answer
36 views

SharePoint Designer Workflows read .XOML file programmically using c#

I need to get list of all the workflows using a custom activity. I visited a workflow using designer and have the name of the activity. I just need to read that xoml file and see whether that file ...
0
votes
1answer
286 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
1
vote
1answer
617 views

Iterating over user profiles in Sharepoint Online 2013

With the on-premise instance of SharePoint, I am able to call the GetUserProfileByIndex from the User Profile Service to iterate over user profiles. However, with SharePoint online 2013, I get the ...
0
votes
2answers
19 views

Enable editing docs but restrict uploading new docs - SP 2013

Im using SharePoint 2013 foundation. The site level users are stored in a custom sql datatable. Users can download documents in a document library via a web part link. (SPGridView link) Users should ...
0
votes
1answer
50 views

I need help getting powershell to run c# code

I found a technet blog saying you could run c# code in powershell, so I ended up giving it a try. When I try to run the following powershell script I get 2 errors and I'm not sure how to resolve them. ...
3
votes
3answers
140 views

Is there a way to display a warning message inside my enterprise wiki page layout , when the page status is Rejected

I am working on a publishing site collection using the Enterprise wiki template. Currently I got this behavior regarding the versioning setting. For the library I specify that the library content ...
1
vote
0answers
18 views

Deploying “Renditions: Word to Wiki” inside Sharepoint 2013 [closed]

I have SharePoint server 2013 SP1 , and I want to use the Kaboodle Word to Wiki inside it. So I did the following steps to be able to test a trial version:- I download the related 7 .wsp files from ...
0
votes
3answers
37 views

Cannot create a timer job with a yearly schedule

I want to create a custom timer job with a SPYearlySchedule. The job deploys successfully, but when I view its settings in the central admin, it is shown to have an hourly schedule: Furthermore, as ...
0
votes
1answer
27 views

Initializing a DateTimeControl in a webpart

I have a visual webpart that uses several SP DateTimeControls (set to DateOnly) on a specific spot on the page. Those controls were simply added in VS to the ascx page from the toolbox like this: ...
0
votes
0answers
10 views

Can you set Project Site administrator programaticaly?

Is there a way to change the Primary Administrator of a Project Server site from C# ?
1
vote
1answer
283 views

Windows 8 App using COM dlls of Sharepoint gives error “Cannot resolve Assembly or Windows Metadata file 'System.Web.Services.dll'”?

I have created a sample app using Windows 8 C# XAML to get site info of SharePoint 2010 using COM Dlls. I have added reference of: C:\Program Files\Common Files\microsoft shared\SharePoint ...
1
vote
2answers
531 views

Field level permission development

I am aware that there already are some questions regarding on how to implement field level permissions customization in SharePoint, such as: SP 2010: column permission Permissions for List or ...
1
vote
1answer
50 views

Count of hits for all subsites of a site collection

I have a site collection with number of sub sites. I want to generate a report based on the count of hits(In terms of each and every click or any other operation performed) for each and every sub site ...
1
vote
1answer
559 views

In a SharePoint List I cannot see items that are in a folder

I have a sharepoint list (Not Library), where I am programatically adding in a folder: SPList list = web.Lists[ListID]; SPFolder parent = list.RootFolder; SPFolder child = ...
1
vote
1answer
319 views

Check Home Page Sharepoint 2010

How to check page is homepage/default page programmatically in C# sharepoint 2010
1
vote
1answer
303 views

How to programmatically access and manipulate Discussion item and replies?

How to access and manipulate Discussion item and replies? I have a discussion board that has a check box, based on the input I switch the permissions of that discussion post for a specific user (from ...
0
votes
1answer
278 views

Sharepoint modal popup don't shown when the Infopath form are on the site

I tried to add Infopath form on my project, but when I add the Infopath form some of PopUp which are corelated with Infopath and shows errors od data didn't shown What should I do to shown A Modal ...
0
votes
1answer
2k views

Register a global.asax into a SharePoint Site

I'm trying add a .asax file into a SharePoint site. I've been following this tutorial. It's quite simple but I'm new to web programming, and I didn't understand where I must insert (and how) the ...
0
votes
1answer
717 views

Sharepoint 2013 Site Title only show parent site

I have a team site and am using the Site Title snippet, but I don't want that changing to show my subsite titles. For example here is an example team site hierarchy we are using for our companies ...
0
votes
0answers
15 views

SP13: Dataview Webpart &nbsp

I have a Dataview Webpart that is used in a page that originated in SP07 however was migrated to 2013 version. Looking at the xsl script there are no hard spaces are indicated by using &nbsp or ...
0
votes
1answer
350 views

Problem with join two lists by linq

I wanna join two list and fill drop down list by specific column but i have error in join query note:c.user_id is lookup field my code lst.DataSource = (from c in dc.Complainant ...
0
votes
0answers
40 views

How to upload file to Doc library using PHP

I am trying to upload a file to SharePoint document library using REST or SOAP but I am stuck, the documentation is just about the headers of the request How to build the URL string? How to do the ...
0
votes
1answer
35 views

Modifying the layout for my Content Search web part

I have added a content search web part, and I select the following layout settings:- The output was very poor regarding the layout:- So can I do the following modifications:- To have the items ...
0
votes
1answer
34 views

Add custom folder programatically to Document Library

I have a custom Document Library that has a custom content type which is an extension of a Folder (just adding some more fields). I'm trying to, in code, add a new item of this content type to the ...
1
vote
0answers
15 views

SPLongOperation window on the end redirects in itself

I have a small issue with SPLongOperation, basically what i'm doing i have something to happen in "OnPreLoad" method ... In this method i start a long processing operation and i call SPLongOperation, ...
1
vote
1answer
66 views

Using Content search web part to retrieve items from another site collection

I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:- -http://applicationname/teamsite -http://applicationname/enterprisewiki Now I ...
2
votes
1answer
31 views

Sharepoint provider hosted app Microsoft.SharePoint.Client.File.OpenBinaryDirect does not work

I am trying to do. Microsoft.SharePoint.Client.File.OpenBinaryDirect(context,relativeUrl) Always get "forbidden" and unauthorized. However If i use same context and url to do ...
0
votes
1answer
996 views

Load properties of list item client object model c#

I have a situation where I need to load items from the list and which columns to be loaded cannot be hardocded, as it will be decided on user input. I have following code. ocamlQuery.ViewXml = ...
1
vote
1answer
404 views

SiteMapProvider for MySites' breadcrumb

My question is regarding the site map provider. I have a breadcrumb in the mysites and i use SPContentMapProvider to build the breadcrumb, but the problem is it always shows 'Home', so if im on my ...
2
votes
1answer
318 views

making an SP.UI print dialog

I'm thinking of adding a print button to my list ribbon , the minute I click on this button a print dialog appears showing the list of the available printers on my computer. so this printdialog i was ...
0
votes
1answer
860 views

Error: Unexpected response data from server - user Profile properties displays

I get the mentioned error message when i try to display the User Profile properties by using JSOM(Java Script Object Model) Error: Unexpected response data from server. The error occurs for around 1 ...
0
votes
1answer
576 views

GetitembyId in list

SPWeb web = SPContext.Current.Web; SPList list = web.Lists["MyList"]; SPListItem item = list.GetItemById(1); item["Title"] = TextBox_Name.Text; item["ProductNumber"] = TextBox_ProdNum.Text; ...
0
votes
0answers
16 views

Is it possible to move a publishing site collection to a sub site

I am working on SharePoint 2013 web application. I have a site collection of type publishing-->enterprise wiki. I read on this link that moving a site collection to be a subsite is not possible ...
0
votes
0answers
21 views

MVC SPO Search API The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"}]

We have a .Net MVC WebAPI solution that is connecting to SPO 2013 Search API and loading a local SQL DB that was working perfectly in an Azure cloud service. We tried to deploy it an on-prem Web/SQL ...
1
vote
1answer
19 views

Pass Credentials on a SharePoint site and get a Response

I'm trying to pass credentials against a SharePoint site (It uses Windows Authentication). This is the code I'm using to do so, SPServices.Lists sourceListService = new SPServices.Lists(); ...
1
vote
0answers
17 views

Lookup Threshold value override using C# code..!

In Production Environment, the Lookup Threshold value set to Default :12. Because of this Value my code give me an error. So If increase this value to 20 then my code works fine. So i want to override ...
0
votes
1answer
27 views

unable to add a search core result web part inside my enterprise wiki site collection

I have two site collections inside the same web application; siteA & siteB. now inside siteA i want to display the latest items from siteB. i read a lot about cross-site query , and it seems that ...
7
votes
5answers
556 views

What are the benefits of grabbing a list by Guid compared to any other way

I know its always best to access a list by its Guid since it won't ever change, compared to accessing a list by Title or Url, but what are the other benefits of grabbing a list by the Guid? There ...
2
votes
1answer
3k views

How to add a registration button to a calendar list / list form?

my use case is: I want to create an event management system without using meeting workspaces (sadly I/We can't use them, at least the senior dev. told me). There shall be: One Calendar List, ...
1
vote
3answers
40 views

Can I create a C# Program for a SharePoint site

I'm trying to access a SharePoint site from an Application created on Visual Studio, this application will pass credentials against the SharePoint site. The application will then be able to create ...
1
vote
2answers
2k views

Get context token for SharePoint 2013 provider hosted app (on-premise) with web project hosted on azure

I have an on-premise SharePoint environment for which I'm developing a provider hosted app using visual studio. The web project is hosted an azure. The app project contains a custom ribbon button that ...
1
vote
0answers
22 views

creat navigatin headings in sharepoint online programatically

Is there a possibility to create headings with multiple links in the navigation bar (i.e. top link bar) in SharePoint online using c3 or powershell? My initial guess was to use ClientContext to gain ...