473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

HttpHandler disapears on form post

ms
Something weird is going on here, an HttpHandler works perfectly,
exect when I post a form to it using the post method it gives me an
file not found 404 error, if I post to it using the get method works
perfectly.

Can someone help??

thanks in advance

Jose Suero

Jan 28 '07 #1
4 3015
Can you tell a bit more? For examnple some sample of the code you have for
the posting form as well as the handler.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
<ms@mstn.comwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
Something weird is going on here, an HttpHandler works perfectly,
exect when I post a form to it using the post method it gives me an
file not found 404 error, if I post to it using the get method works
perfectly.

Can someone help??

thanks in advance

Jose Suero
Jan 28 '07 #2
ms

thanks for your attention,
I don't have anything special on the handler it self or the form for
that matter, if I put GET on the method it works, if I post to it, it
doesn't, just to be sure i tested with this and got the same result:

html:

<html>
<head>
<title>test</title>
</head>
<body>
<form action="http://localhost/crm/crmserver.ashx"
method="post">
<input type="submit" value="submit"
</form>
</body>
</html>

class
Public Class crmserver
Implements IHttpHandler

Public Sub ProcessRequest(ByVal context As System.Web.HttpContext)
Implements System.Web.IHttpHandler.ProcessRequest
context.Response.Write("hello")
End Sub

Public ReadOnly Property IsReusable() As Boolean Implements
System.Web.IHttpHandler.IsReusable
Get

End Get
End Property
End Class


On Jan 28, 8:37 am, "Teemu Keiski" <jot...@aspalliance.comwrote:
Can you tell a bit more? For examnple some sample of the code you have for
the posting form as well as the handler.

--
Teemu Keiski
AspInsider, ASP.NET MVPhttp://blogs.aspadvice.com/jotekehttp://teemukeiski.net

<m...@mstn.comwrote in messagenews:11*********************@p10g2000cwp.go oglegroups.com...
Something weird is going on here, an HttpHandler works perfectly,
exect when I post a form to it using the post method it gives me an
file not found 404 error, if I post to it using the get method works
perfectly.
Can someone help??
thanks in advance
Jose Suero- Hide quoted text -- Show quoted text -
Jan 28 '07 #3
configuration>
<system.web>
<httpHandlers>
<add verb="GET,POST" path="*.sample"
type="YourTypeHere" />
</httpHandlers>
</system.web>
</configuration>

Cheer,
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"ms@mstn.com" wrote:
Something weird is going on here, an HttpHandler works perfectly,
exect when I post a form to it using the post method it gives me an
file not found 404 error, if I post to it using the get method works
perfectly.

Can someone help??

thanks in advance

Jose Suero

Jan 29 '07 #4
I had similar setup and didn't have any issues? Do you have any settings in
web.config or IIS preventing the POST action to the handler?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

<ms@mstn.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
>
thanks for your attention,
I don't have anything special on the handler it self or the form for
that matter, if I put GET on the method it works, if I post to it, it
doesn't, just to be sure i tested with this and got the same result:

html:

<html>
<head>
<title>test</title>
</head>
<body>
<form action="http://localhost/crm/crmserver.ashx"
method="post">
<input type="submit" value="submit"
</form>
</body>
</html>

class
Public Class crmserver
Implements IHttpHandler

Public Sub ProcessRequest(ByVal context As System.Web.HttpContext)
Implements System.Web.IHttpHandler.ProcessRequest
context.Response.Write("hello")
End Sub

Public ReadOnly Property IsReusable() As Boolean Implements
System.Web.IHttpHandler.IsReusable
Get

End Get
End Property
End Class


On Jan 28, 8:37 am, "Teemu Keiski" <jot...@aspalliance.comwrote:
>Can you tell a bit more? For examnple some sample of the code you have
for
the posting form as well as the handler.

--
Teemu Keiski
AspInsider, ASP.NET
MVPhttp://blogs.aspadvice.com/jotekehttp://teemukeiski.net

<m...@mstn.comwrote in
messagenews:11*********************@p10g2000cwp.g ooglegroups.com...
Something weird is going on here, an HttpHandler works perfectly,
exect when I post a form to it using the post method it gives me an
file not found 404 error, if I post to it using the get method works
perfectly.
Can someone help??
thanks in advance
Jose Suero- Hide quoted text -- Show quoted text -
Feb 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jed | last post by:
I have written an HttpHandler which I invoke through an ashx page. The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything...
4
by: Igor K | last post by:
Hi all, I'm developing asp.net website. Most of the pages are aspx, but let's say, some 10% are html. For this html pages i use httphandlers to intercept calls and to perform some job on this...
4
by: Jeremy Lew | last post by:
When my HttpHandler is processing a request when installed on a particular 2003 Server machine, the Context.Session object is null. Any idea why this might be? My handler implements...
5
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.