Questions related to SharePoint Console Applications

learn more… | top users | synonyms

1
vote
1answer
29 views

Can we distribute SharePoint DLLs with our application

Is my understanding of following page correct that we can distribute Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll with our application? Like we reference these DLLs in ...
3
votes
2answers
64 views

C# Console Application after windows log off

How to keep running c# console application after login with its UI (console window) to insert data into SharePoint 2013 list item. Windows Service & Task Scheduler will not give me UI (Console ...
1
vote
2answers
86 views

CSOM returns 403 Forbidden when checking site collection

I am creating a console application to create Subsite's, lists, list items etc. I have a simple function that checks if a SiteCollection exists and am met with a 403 Forbidden error when calling the ...
2
votes
2answers
96 views

SPSite.Exists always returns false

I am trying to determine if a site collection exists, but the SPSite.Exists method always seems to return false regardless if the site collection exists or not. Snipp: bool exists; Uri uri = new ...
0
votes
0answers
55 views

Secure Store Servce. Set Credentials Programmatically

I have a problem when trying to set SSS credentials for a target application using C#. Console application is used for this task. I can successfully create a Target Application with fields, admins ...
0
votes
3answers
91 views

SP2013 - Console app on DEV server unable to connect to PROD site

I'm working on a console application in VS2012 installed on my SP2013 dev server. The app is called from a command line and sets up a new FBA account using info provided by the user. When it reaches ...
0
votes
2answers
534 views

The length of the URL for this request exceeds the configured maxUrlLength value. REST API

I was wondering if someone could help, or am I missing something. In the articles found here http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_FileStartUpload They refer ...
1
vote
1answer
88 views

run exe as process from sharepoint webpart

Im trying to run an exe file to create a contentdatabase and then create a sitecollection in this database, running this process is working well outside the sharepoint, but when im trying to run it ...
1
vote
1answer
2k views

An unhandled exception of type 'System.Net.WebException' occurred in Microsoft.SharePoint.Client.dll

I try to access SharePoint list from a console app in .NET. My environment doesn't have SharePoint installed one and I write code in VS 2013. I want to access SharePoint 2013 list data. When I run my ...
0
votes
0answers
58 views

Cannot connect to my SPSite

I'm facing a strange issue. I have a console application project and added assembly Microsoft.SharePoint from C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
1answer
51 views

SPWeb not showing site that exists

I have migrated a site from 2007 to 2010. I then moved the site collection to a place within a subsite using site content and structure. Everything works fine and I can see everything correctly. ...
1
vote
0answers
54 views

code for redirecting to a page from a link in excel

I have an application where all my list data is getting exproted to excel. In excel there is a link in a column. On clicking that link it should redirect to a page form excel. Require c# code for that ...
1
vote
1answer
129 views

How to retreive data from web analytics using console application?

I have a sharepoint site where where i have web analytics service started. I will get a rrport denoting the no of visits by the user and also below i have last modified date and no of visits by all ...
0
votes
2answers
51 views

How to find how many site colections are active in a web application using console application

I need to retreive how many sites are active in a web application using either powershell code or console application. Require the code ( also need how many users have accessed the active site ...
0
votes
1answer
53 views

How to retreive last 10 users who have logged in a site using Power shell script?

I need to retreive last 10 users who have logged in a site.(I need to chek in each site under a webapp who are the last 10 users to log in). and export it to a csv file.Require code in powershell.
0
votes
3answers
167 views

How to export list items in same order in a list to excel 2010 (console application)?

I require to export list items from a SharePoint list to Excel. The order of items in the Excel sheet should be the same as in the list. Can somebody suggest console application code for this?
1
vote
1answer
2k views

Access the SharePoint online webservice from a console application

I tried to access a SharePoint Online web service i.e (/_vti_bin/Lists.asmx). I used the code sample provided in the following article : ...
0
votes
3answers
160 views

SPFolderCollection valid index arguments

SharePoint 2010, c# server object model, VS2012 Long story short, I'm trying to fetch a folder of a document library, create a new folder in it from an array of names, then fetch the new folder via ...
0
votes
1answer
115 views

Developing console applications for previous assemblies (Sharepoint 2010)

I Made a console application that changes items in a list that has a Taxonomy field. The app works well on the Developement machine, but for some reason, when move it to production, we get this error: ...
2
votes
1answer
320 views

Unable to seperate normal and hidden folder such as “Forms” [SPFolder Object Model ]

While performing certain task in a console application, i am unable to separate normal folder and hidden ones such as "Forms","FormServerTemplates" etc. I am using SPFolder in the obejct model. I have ...
0
votes
1answer
295 views

Getting Library contents along with Folder structure [Console application using Object Model]

I am developing a console application which will get all the files in a document library and copy it to a particular location on system. I was successful in retrieving all the files within the ...
0
votes
1answer
250 views

How authentication is done when using a CAML query for SharePoint List in a console application

I am try to develop a console application in Visual Studio which uses CAML query to get data from SharePoint List. The question is, how does the console application authenticates from the SharePoint ...
2
votes
3answers
747 views

Programmatically determine SharePoint Version

I am writing a console application for SharePoint. Mostly, I will be using it for both MOSS and SharePoint 2010. I have two separate functions - one for MOSS and other for SharePoint 2010. In my Main ...
2
votes
2answers
2k views

Programmatically generate MySites for all users

I have a console application with the following piece of code: SPServiceContext serviceContext = SPServiceContext.GetContext(portalSite); UserProfileManager profileManager = new ...
2
votes
1answer
3k views

Creating site column with a specific GUID

I am trying to create a site column using via a console app. I would ultimately like to be able to migrate the site column and upgrade the same column via this app. To that end, I would need some ...
5
votes
6answers
23k views

HTTP 401, Unauthorized using the Managed Client Object Model

I have a Windows 7 system built (per MS' instructions) with SharePoint 2010 Server. I'm writing a simple console application on it that attempts to use SharePoint's Managed Client Object Model to ...
2
votes
2answers
567 views

MOSS2007 PowerShell vs Console Application

I'm looking for a few examples of when you would be better off writing a PowerShell script vs writing a Console Application to perform some operations against the Object Model in a MOSS2007 or WSS 3.0 ...