httphandler

IIS 6 ASP.NET handlers not working in virtual application

左心房为你撑大大i 提交于 2019-12-25 08:35:28
问题 I have a virtual directory (configured as an application). It will accept requests for all files that exist, but it will not call handlers (system.web/httpHandlers). Any ideas? <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script

How does SignalR register its HTTP Handler in the project?

早过忘川 提交于 2019-12-25 05:32:42
问题 I have been looking for an hour and am baffled why the SignalR sample code actually works! I got it installed from nuget and it just works, which is good but cannot see how. I cannot see anything in the global.asax or web.config to register the HttpHandler. I suspect this is probably a static constructor in some class and adds the handler (although again with no code using the class, that will not work), but cannot figure out without looking at the code - and for this, I dont feel like going

Asp.net Google Charts SSL handler for GeoMap

旧街凉风 提交于 2019-12-24 10:49:46
问题 I am trying to view Google charts in a site using SSL. Google Charts do not support SSL so if we use the standard charts, we get warning messages. My plan is to create a ASHX handler that is co9ntained in the secure site that will retrieve the content from Google and serve this to the page the user is viewing. Using VS 2008 SP1 and the included web server, my idea works perfectly for both Firefox and IE 8 & 9(Preview) and I am able to see my geomap displayed on my page as it should be. But my

Can't find httpModules and httpHandlers inside machine.config

半世苍凉 提交于 2019-12-24 09:28:51
问题 I've read a post about httpHandlers and httpModules in ASP.NET and it said that there are such nodes (<httpModules> and <httpHandlers>) defined by default inside machine.config but when I looked they are not there. I've searched the machine.config at path "$WINDOWS$\Microsoft.NET\Framework\$VERSION$\CONFIG". The only references are these 2 lines: <section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken

RadEditor requires a HttpHandler registration in web.config

爱⌒轻易说出口 提交于 2019-12-24 07:19:46
问题 When I add this code to my aspx , <telerik:RadEditor ID="REWelcome" runat="server" AutoResizeHeight="True" Width="500px" ToolbarMode="Floating"> <Content> </Content> <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings> </telerik:RadEditor> And I got this error message , '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. How can I solve it ? 回答1: In your web.config - add the following to the

AntiForgery implementation in Asp.net Forms

落花浮王杯 提交于 2019-12-23 22:41:19
问题 I am developing an httphandler to process some requests in Web Forms (NOT in MVC). How could I implement Anti Cross Site Scripting (like antiforgery in MVC)? I want to know mre about the antiforgery mechanism in MVC. 回答1: If you can access the Page, you can use the ViewStateUserKey property of the Page. Here is an example of how to do this from within the page, but you will get the idea: protected void Page_Init(object sender, EventArgs e) { // Validate whether ViewState contains the MAC

Help me understand web methods?

落花浮王杯 提交于 2019-12-23 19:36:17
问题 I have a method on a page marked with the webmethod and scriptmethod tags.. The method returns a collection of objects to a jquery function as JSON data with no hassles and without me having to manually serialize it. I am now trying to recreate that same method using a HTTPHandler and was wondering why i have to now manually serialize the data. What makes the webmethod different? 回答1: Because an HTTP handler (kind of) sits above the ASP WebForms Stack, you are totally responsible for the

Asynchronous HttpHandlers and WriteAsync

一个人想着一个人 提交于 2019-12-23 18:06:48
问题 I've been experimenting with some code code on Ayende Rahien's blog here which demonstrates using asynchronous HttpHandlers to improve the number of requests that can be processed concurrently. Unfortunately I can get even the basic example to work. I'm getting the following error: 'System.IO.TextWriter' does not contain a definition for 'WriteAsync' and no extension method 'WriteAsync' accepting a first argument of type 'System.IO.TextWriter' could be found (are you missing a using directive

 characters appended to the beginning of each file

…衆ロ難τιáo~ 提交于 2019-12-23 07:46:37
问题 I've downloaded an HttpHandler class that concatenates JS files into one file and it keeps appending the  characters at the start of each file it concatenates. Any ideas on what is causing this? Could it be that onces the files processed they are written to the cache and that's how the cache is storing/rendering it? Any inputs would be greatly appreciated. using System; using System.Net; using System.IO; using System.IO.Compression; using System.Text; using System.Configuration; using

Azure and HttpHandlers

若如初见. 提交于 2019-12-23 05:26:44
问题 I have a HttpHandler for an asp.net mvc application. I've tested the handler for asp.net and asp.net mvc 3 applications and everything works as expected. When I use the HttpHandler in an Azure based asp.net mvc 3 application the 'ProcessRequest' method is NOT being called - I can see the HttpHandler being created. I have the following web.config and this works for a standard asp.net mvc 3 app: <system.web> <httpHandlers> <add type="TestWebRole.Infrastructure.HttpHandlers.EPubHandler" path="*