Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, thanks for taking the time to read my question.

I have created a MVC web site that responds to IPN requests from paypal, It works well.
I decided I need to make some mods to the site and wanted to create a windows Forms based web application to simulate paypals IPN mechanics.

I can connect to my locally hosted MVC web site and send to IPN message to it using the HttpWebRequest from my winform application as I know the URL. However, inside my MVC Web site I then need to send a response back to the calling winform app. I'm failing miserably :(

I got the host address ::1 from within the MVC web site which I believe equates too 127.0.0.1 local host.

I tried to create a webrequest too all the addresses but too no avail.

I get 'The remote server returned an error: (405) Method Not Allowed' I googled this message but have limited experience in this field and couldnt resolve the issue. I checked IIS handler mappings but went all squared eyed.

Any help/example code would be marvellous!

Many thanks in advance.
Posted
Updated 27-Aug-14 23:56pm
v2
Comments
Herman<T>.Instance 28-Aug-14 6:21am    
Create a WCF service with an event hat works like a push message
[no name] 28-Aug-14 7:40am    
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.haveresponse(v=vs.110).aspx

1 solution

HTTP 405 method not allowed simply means whatever HTTP verb you are trying to use like GET/POST etc, the server doesn't allow to do it. To get the details use fiddler to see the HTTP request/response and troubleshoot further.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900