tagged [sharepoint]

Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size

Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size I am using SMTPclient to send mail with attachment. When the attachment is more than 2mb, I ...

Auto number column in SharePoint list

Auto number column in SharePoint list In a SharePoint list I want an auto number column that as I add to the list gets incremented. How best can I go about this?

19 Oct at 20:15

Get domain name

Get domain name My computer is in a Domain (Active Directory) and I need to get the domain name dynamically. I found the following code on the internet: ``` SelectQuery query = new SelectQuery("Win32_...

29 Sep at 13:57

Alternative Hostname for an IIS web site for internal access only

Alternative Hostname for an IIS web site for internal access only I'm using IIS in Windows 2003 Server for a SharePoint intranet. External incoming requests will be using the host header `portal.mycom...

24 Aug at 09:30

How do I insert a background image on all pages of a pdf-document?

How do I insert a background image on all pages of a pdf-document? I need sample code in C# to insert the background image on all pages of the finished pdf-document. I'm using iTextSharp library.

Create or get specific SPTimeZone instance

Create or get specific SPTimeZone instance What is the most convenient way to create a specific instance of `Microsoft.SharePoint.SPTimeZone` as the following one: ``` SPTimeZone utc = SPRegionalSetti...

Sharepoint Out of the box Approval Workflow Approve/Reject comments issue when programmatically altering it

Sharepoint Out of the box Approval Workflow Approve/Reject comments issue when programmatically altering it I have a re-usable out of the box sharepoint approval workflow 2010, and I am programmatical...

Sharepoint Provider Hosted User Permissions

Sharepoint Provider Hosted User Permissions I'm building a business app where read and write access permissions are important. The project is a Provider hosted MVC 5 / SharePoint app built in Visual S...

11 Jun at 11:33

How to get all SSRS reports from Sharepoint url?

How to get all SSRS reports from Sharepoint url? I'm very new to SSRS and SharePoint, We deployed the reports in SharePoint location, often some of the Reports doesn't have connection string. For this...

17 Apr at 07:27

C# CSOM - Check if File Exists in Document Library

C# CSOM - Check if File Exists in Document Library I'm coding in C# using CSOM, my app uploads a template asp.net page to the "/Pages/" library, I need it to check if a file exists in that location wi...

11 Mar at 01:37

How to pass credentials to httpwebrequest for accessing SharePoint Library

How to pass credentials to httpwebrequest for accessing SharePoint Library I'm trying to read files from a SharePoint document library using `HttpWebRequest`. In order to do that I have to pass some c...

6 Feb at 22:31

Claim auth from ADFS

Claim auth from ADFS I try to connect to a SharePoint Online instance via a WPF application. I have found [this article](http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-an...

SharePoint OPTIONS preflight request

SharePoint OPTIONS preflight request I have a Service Stack service hosted within a SharePoint 2013 site. When attempting to make a cross domain request to one of the services, a preflight `OPTIONS` r...

Disabling print option in pdf when opening pdf file from sharepoint library using sharepoint 2007

Disabling print option in pdf when opening pdf file from sharepoint library using sharepoint 2007 i want to disable pdf options from pdf file while opening pdf file from sharepoint library in sharepoi...

20 Sep at 13:27

MailMessage.To.Add() throwing exception : "An invalid character was found in the mail header: ','."

MailMessage.To.Add() throwing exception : "An invalid character was found in the mail header: ','." I am using `MailMessage` class to send email using SMTP . But when I trying to add user to 'To' prop...

18 Sep at 10:29

Proper way to detect if a ClientObject property is already retrieved/initialized

Proper way to detect if a ClientObject property is already retrieved/initialized If you're using the Client Object Model from SharePoint and access properties which haven't been initialized or already...

5 Sep at 06:45

Federated authentication in Sharepoint 2013: getting rtFa and FedAuth cookies

Federated authentication in Sharepoint 2013: getting rtFa and FedAuth cookies The scenario is the following: I need to perform a federated authentication of a user (which uses his university account) ...

How to detect page refresh in .net

How to detect page refresh in .net I have a `Button_click` event. While refreshing the page the previous `Postback` event is triggering again. How do I identify the page refresh event to prevent the `...

The tail of the log for the database "DBName" has not been backed up

The tail of the log for the database "DBName" has not been backed up I tried to restore a database using the following query: but instead of restoring the database, I am getting this error:

19 Jun at 19:3

How do i keep the Sharepoint context when moving around an ASP.NET MVC application without using the query string?

How do i keep the Sharepoint context when moving around an ASP.NET MVC application without using the query string? I'm building a small application in MVC 4.5. I've got an Azure database, and i'm usin...

WSS 2.0 lifecycle (when does support stop?)

WSS 2.0 lifecycle (when does support stop?) When will Microsoft stop supporting WSS ? For my current project we have the choice to migrate our code to WSS 3.0 or continue to use WSS 2.0. Depending on ...

12 May at 20:52

How to find the logged in user in Sharepoint?

How to find the logged in user in Sharepoint? I have developed a "web part" that has to be deployed on a Sharepoint server. I need the username of the user, who has logged in the sharepoint server wit...

10 Apr at 13:32

Server cannot set content type after HTTP headers have been sent

Server cannot set content type after HTTP headers have been sent I get an error (Server cannot set content type after HTTP headers have been sent.) on the following code (`ContentType` line). What sho...

31 Mar at 19:35

CAML query for boolean column is not working

CAML query for boolean column is not working Hi I have a SharePoint list to be queried for my Desktop App and I want to retrieve only the Active Members but when I queried I got only the users who are...

19 Feb at 21:43

Best way to resolve file path too long exception

Best way to resolve file path too long exception I created a app that downloads all document libraries in a SP Site , but at one point it giving me this error (I tried looking at google but couldn;t f...

22 Jan at 10:42