ashx

How can I know on the client side when the HTTP handler is done processing?

Probably a long question for a simple solution, but here goes... I have a custom made silverlight control for selecting multiple files and sending them to the server. It sends files to a general handler (FileReciever.ashx) using the OpenWriteAsync method of a WebCLient control. Basically, the silverlight code does something like this f...

Visual Studio ASP.Net expand and collapse issue in ashx generic handlers

I have Visual Studio 2008 Professional and I am having issues with expanding and collapsing method code blocks in ASP.Net Generic Handler pages (.ashx) I would have thought you could do the same thing like in the code behind of .aspx web pages. I have this same issue on other boxes even with VS 2008 Standard and VS 2005 Professional. ...

How do I convert from axd to ashx?

I'm trying to deploy elmah. For inexplicable reasons, I'm getting an error: .axd files are explicitly forbidden. I've already fixed what I can control (my web.config) and solutions requiring collaboration from the system admin are not available (such as editing machine web.config or updating IIS mappings). I also verified that it works...

Why asynchronous ASHX generated images doesn't always work in IE6?

If you use an WebHandler inheriting IHttpAsyncHandler, you shouldn't notice that under undetermined specific circumstances the browser MS IE6 won't display it, the request will never finish. Is there a fix for it? ...

ashx handler post issue

I'm getting some confusing results around myCustom.ashx handler. If i visit the handler via the browser: Token.Instance.User.UserId = 162 // which is correct If i post to the handler: Token.Instance.User.UserId = 163 // a new user is generated. It's seems like when i post it creates a new session. extra info: public class myCus...

What Happened to Handlers (ASHX) in ASP.NET 3.5

Why does the default "generic handler" code in an ASP.NET 3.5 web application add attributes to the class but not the correct namespace references. This is the template they give you out-of-the-box: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Handler1 { /// <summary> /// Summar...

How did you get ASP.NET to output UTF-16 encoded text?

How did you get ASP.NET to output UTF-16 encoded text? I serialize an object in .NET which by default is UTF-16 format. Now I want to send the string as an output response to an .ashx request. I get the error: Switch from current encoding to specified encoding not supported. Error processing resource How do I tell my website or page t...

How do you call an ASHX from JavaScript?

I want to call an ASHX file and pass some query string variables from JavaScript and get the return string into a string in the JavaScript. How would I do this? The ASHX file is already coded to response.write a string based on whatever the query strings are. ...

Keeping same session with different user-agents

Is there a way to use the same session on different user-agents. I have a flash app that is generating a new session id on posting data to myHandler.ashx ( same happens on aspx ). Am i missing a trick here? ...

How to block (or unblock) the ASP.NET error logger Elmah?

Some one configured my server in a way that intentionally or inadvertently blocks ELMAH. I wish I know what that was. My current server admin can't figure out what's blocking it either. Clues have so far Error message is "This type of page is not served...it has been explicitly forbidden" Ordinary .ashx handlers work just fine. (Hel...

How do I call an ASHX from inside an ASPX.VB function?

I need to get a value from an API I made with ASHX and normally it is called from javascript but I need to call it right in ASP.NET I figured this shouldn't be a problem but I'm not sure the syntax. ...

IIS 7.0 503 errors with generic handler (.ashx) implementing IHttpAsyncHandler

I'm running into some performance issues using a generic handler that implements IHttpAsyncHandler. At its simplest, the handler receives a GET request, and 20 seconds later ends the response after writing '< timeout / >' to the response. When hammering the .ashx with 10000-20000 simultaneous requests, it fails with 503 server unavailab...

What are the benefits of an ASHX handler file in asp.net?

Hi, What are the benefits of using an ashx, or handler? Also, do I need them if I use MVC (and why not)? Does the framework matter (2.0+)? Why would I want to use a handler? I was recently recommended to use one for retrieving an image but I don't know why. Thank you for your time. Edit - is a handler faster? ...

How to use Generic Handlers (ASHX) in ASP.NET MVC?

I need a image generator in my ASP.NET MVC application, but I don't know if it is possible to use ASHX in ASP.NET MVC. If there is an class similar to IHttpHandler that inherits IViewDataContainer, then I could use ViewData.Model on my ASHX. I read a blog post about it but it seem outdated from the info I got in the ASP.NET forum Any ...

How do I give my .ASHX access to ConfigurationManager.ConnectionStrings?

I have included the same files that other pages have that use it but for some reason it's just not finding it. How do I include access to it? ...

ASP.NET MVC vs. Webforms vs. HTTP Handlers (.ashx) - which is the most lightweight?

I plan on building a simple, yet high usage webapp and need to settle on an architecture. basic server side logic / dynamic db driven content about half a dozen to a dozen pages serving up all said content no need for URL rewriting, pretty simple page flow/routing The objective is to publish this app to use the least amount of band...

Bind XMLDataSource to HTTP handler

Hi I have some dynamically generated XML data that will be consumed by a few consumers (An ASPX page, a flash file and maybe another one as well). I have implemented it as a custom handler. I construct the XML in the handler and output it using response.write. Now If I set the DataFile property of my XMLDataSource to the handler, it ...

image using .ashx

hi i am using .ashx to retrive image and i place the the image inside the ajax update panel it retrive the image when a new image is added to the form but when we change the image it is not updating the image it dont even call the .ashx file but when i refresh the browser it works properly ...

Return Bitmap to Browser dynamically

I am cropping an image, and wish to return it using a ashx handler. The crop code is as follows: public static System.Drawing.Image Crop(string img, int width, int height, int x, int y) { try { System.Drawing.Image image = System.Drawing.Image.FromFile(img); Bitmap bmp = new Bitmap(width, heig...

multi-platform app: ashx or web services?

Hello! I am looking to create a lightweight, heavy traffic, db site. It will be standard 3 tiered architecture in asp.net. Part of this site is web-based, but most of the functions will ideally be available on mobile devices, also. That being said, I know that web services is the classic answer for this, since I can access a web service...