Questions tagged [ihttpasynchandler]

IHttpAsyncHandler interface allows you to serve content asynchronously from the HTTP handler. It defines the contract that HTTP asynchronous handler objects must implement.

39 questions
0
votes
0 answers

Need help implementing IHttpAsyncHandler on my methods to make an API call

So I have a DNN module that is basically just a square box to drop files into which then get resized, renamed, saved locally, and uploaded to an Azure blob container. Now what I need to do is to make an API call (that I made myself) to get some info…
Gerrit Botes
  • 57
  • 1
  • 2
  • 6
0
votes
1 answer

How can I get permission to write an unsafe code in ashx file?

How can I get permission to write an unsafe code in ashx file? When I use unsafe code in asp i encounter the following error. unsafe code may only appear if compiling with /unsafe
marandiiii
  • 21
  • 10
0
votes
0 answers

HttpContext Session null in new Job (Quartz.Net)

I want to put together a scheduler for web data processing to limit the number of jobs, so I used the Quartz.Net framework and put that on top of IHttpAsyncHandler. public void ProcessRequest(HttpContext context) { //…
christian.stock
  • 181
  • 2
  • 15
0
votes
0 answers

IHttpAsyncHandler flush - worker thread vs io thread

I'm using IHttpAsyncHandler with BeginProcessRequest and EndProcessRequest methods. Say I have the following code under EndProcessRequest method: public void EndProcessRequest(IAsyncResult result) { …
Tomer Peled
  • 3,571
  • 5
  • 35
  • 57
0
votes
1 answer

BLOB Reading via IHttpAsyncHandler

I am storing images in SQL Server 2000 database (BLOB type). There is a web page in my ASP.NET application which need to show a lot images to the end user and i want to handle browser's requests for images through a IHttpAsyncHandler. I found a…
shaniirfan
  • 13
  • 6
0
votes
2 answers

ASP.Net: IHttpAsyncHandler and IRequiresSessionState not working

I have implemented an IHttpAsyncHandler. I am making about 5 different AJAX calls from a webpage that has widgets to that handler. One of those widgets takes about 15 seconds to load(because of a large database query) the others should all load in…
ctrlShiftBryan
  • 27,092
  • 26
  • 73
  • 78
0
votes
1 answer

Comet - HTTP Streaming with IHttpAsyncHandler - chunk not working

I'm trying to implement HTTP Streaming by using IHttpAsyncHandler and flushing. Basically I'm flushing to the response every once and a while - saving the connection opened untill some timeout - and then the client should initiate another…
Tomer Peled
  • 3,571
  • 5
  • 35
  • 57
0
votes
1 answer

IHttpAsyncHandler causes UnathorizedAccessException

For the last couple of days of my X-mas holidays, I have been struggling with an UnathorizedAccessException when trying to READ a XML file on a remote share through my ASP.NET application using an implementation of the IHttpAsyncHandler a long with…
gimlichael
  • 1,365
  • 1
  • 15
  • 28
0
votes
1 answer

Can I define frequency check for ThreadPool.QueueUserWorkItem?

I implemented a System.Web.IHttpAsyncHandler to limit website bandwidth usage for files download. Once defined user bandwidth, I need to send a byte[] every second (or 1000 milliseconds, to be precise). Something like: public class DownloadHandler :…
Rubens Farias
  • 57,174
  • 8
  • 131
  • 162
1 2
3