OWIN – Open Web Interface for .NET, is just a specification which defines the standard interface between .NET web servers and web applications.
As said, OWIN is not a framework instead it is a specification on how web servers and web applications should be built in order to decouple one from another and allow movement of ASP.NET applications to environments where at the current state it is not possible.
There are three ways you can extend the ASP.Net pipeline processing
- Http Application or Global.asax
- Http Handler
- Http Module
It is important to understand which does what and when to use, this post is intended to give you a quick overview.
Many a times, we want to Export the List items in CSV format and it can be easily done using the “owssvr.dll” with an exception that you won’t be to apply logical condition on the filter(ie., between, or)
So, we may have to deal this with custom solution. Here I posted a part of the bigger project to Export the List items in CSV format using HTTP Handler(Generic).
There are many occurrences where SharePoint throws an exception while trying to use SPContext.Current . The purpose of writing this article is to give the basic understanding behind this.
One of such scenario is, while trying to implement IHttpHandler in SharePoint 2010, got the Error : SPContext.Current is null and cannot retrieve the context of the site.
Running with elevated permission and within that referencing SPContext.Current, throws an exception – SPContext.Current is null.