Questions tagged [httpcontext]

Encapsulates all HTTP-specific information about an individual HTTP request.

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

What is difference between httpcontext and spcontext?

We always use SpContext.Current.Web, but then what is difference between httpcontext and spcontext?
2
votes
1answer
245 views

Why the HttpContext is null within event receivers, console applications and timer jobs

Why the HttpContext is null within event receivers, console applications and timer jobs. HttpContext httpctx = HttpContext.Current; I googled about it and found that its by design. But why by ...
2
votes
1answer
2k views

Why is HttpContext.Current set to null?

we are trying to access the user profile properties via SOM. Code is taken from reference as mentioned below. My question is: Why is HttpContext.Current set to null?. Code works even if we comment ...
1
vote
1answer
42 views

Azure/Provided-hosted Application for on-Premise SharePoint

I would like to make an provided-hosted app for on premise server. I publish this type of application on azure cloud and I've tried to open it in SharePoint on-Premise server and in SharePoint Online. ...
1
vote
1answer
2k views

ClientContext.executeQuery() throws operation Timeout error

Trying to create a list item in the SharePoint list in a batch of 5 using Visual Studio but the clientContext.ExecuteQuery() throws exception and only create 1 list item. var url = "calling a ...
1
vote
2answers
840 views

Redirect to Login Page After Session Expired - SharePoint Custom Login Page

I have SharePoint web application. Need to redirect to custom login page after session timeout. Where is the exact location in web.config file to do this redirection or any code behind file or login....
1
vote
1answer
61 views

How to get SecurityToken in event reciever?

I have enabled FBA in my site. We are trying to override people picker with this link. We have override people picker method in farm level feature event receiver as suggested in method. I am trying ...
1
vote
0answers
182 views

Get HttpContext from ClientContext?

I have a ClientContext from a valid connection (AppOnly-Permission). Is there a way to get the HttpContext from that?
1
vote
1answer
1k views

Get user session ID

I have a problem with SharePoint session. Is there any way to retrieve Session ID or Transaction ID of an user in SharePoint by C#?
0
votes
2answers
281 views

SPContext.Current is null while calling SPContext.Current.Web.EnsureUser() method

SPContext.Current is null while calling SPContext.Current.Web.EnsureUser() method. Any suggestions?
0
votes
2answers
2k views

HttpContext.Current.Response is null

Using SharePoint 2010 sandbox webpart, I am dynamically making a pdf file in memory. I want to have a download browser prompt after the file is made however I am having issues with HttpContext.Current....