Web service call returns 405 method not allowed error

I currently have a deployed wcf application on iis 7.5, windows server 2008 R2. I am using a asp 4.0 mvc which calls the different methods of the wcf web service application.

When I make an ajax GET request to any method in the wcf application I get the expected json result and all works fine. However, when I make a POST request I get the 405 method not allowed error.

I checked the "Handle Mappings" in iis and all the .svc mappings allow ALL Verbs.
1. My svc-ISAPI is mapped to aspnet_isapi.dll.

  1. My svc-Integrated is mapped to "System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"

All the mappings seem to be correct.

I am not sure why my POST will not work.

thanks, Matt

Category:iis 7.5 Views:1 Time:2011-07-12

Related post

  • Web Service Response returns a 500 Internal Server Error 2012-04-24

    I have written my own web service which works fine stand alone. I'm calling this web service from another page, and at that time it returns a 500 Internal Server error. I'm going through this process for the 1st time and do not know what this means o

  • How do you detect when the connection breaks when a web service is returning a result? 2009-10-15

    In a C# ASP .NET application I have a web service that receives a DataSet, processes it, and returns it. Returning it can take up to a minute over a slow connection. What happens in the background if that connection breaks after the last line of the

  • Calling ASP.NET web service function via GET method with jQuery 2010-04-26

    I'm trying to call web service function via GET method using jQuery, but having a problem. This is a web service code: [WebService(Namespace = "http://something.com/samples")] [ScriptService] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_

  • jQuery ajax GET returns 405 Method Not Allowed 2011-06-29

    I am trying to access an API that requires authentication. This is the code that i am using but i keep getting a 405 Method Not Allowed error. Any thoughts? (my username and password are correct) function basic_auth(user, pass){ var tok = user + ':'

  • Call web-service's object's method 2011-10-10

    I have a web-service that returns a custom object, but now I want to call some of the object's methods e.g. to change some of it's values (but also for other needs), but how can I do that? Do I have to set the object up as a web-service or how? The w

  • web service should return json 2011-11-20

    I need my web service to return JSON... I have the following code in my .asmx file: namespace Feed { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(fals

  • Can Delphi 2009 build web service that returns a DataSet? 2009-02-03

    In the sample Delphi web service tutorials I've read, they tend to build a web service that returns a simple string or integer, e.g. http://blogs.codegear.com/pawelglowacki/2008/12/18/38624 However, I read it's possible in .NET to build a web service

  • How can I get a simple c# web service to return header? 2010-11-10

    I've written a very simple web service that returns an XML document. The header for that document is currently <?xml version="1.0" encoding="utf-8" ?> and I would like it to return <?xml version="1.0" encoding="utf-16" ?> How can I change

  • Consuming Rest Web Service that returns XML via Javascript and/or PHP 2010-12-03

    I have a web service I would like to consume with Javascript. I've tried reading all the documentation on Jquery to do this using JSONP, however I believe this is only for Web Services that return JSON data? A few questions. I have a web service that

  • Web service (.net) returning html - limitations? 2011-01-04

    I have a web service that returns HTML for a table (for optimization purposes) in a string. One thing I am cautious about is the limit of data I am allowed to put in a string variable in C#, as well as any other possible limitations or warnings? I re

  • How to create a web service which returns JSON rather than XML for GET and POST (no AJAX)? 2011-02-11

    I would like to create a web service which returns results as JSON in ASP.NET with a HTTP GET and POST bindings. In other words I would like a webservice which would return JSON if one types it's url in a browser. The XML representation is done autom

  • Modifying .NET .asmx web service to return JSON instead of XML 2011-08-10

    I have created a simple .asmx web service in .NET as shown below: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string Foo(string name) { var customer = new {Name = name}; JavaScriptSerializer json = new JavaScriptSerializer

  • Looking for a web-service that returns a XML (1MB or bigger) to test a solution for performance problems 2011-12-06

    I would like to test something and therefore i need to access or call a web-service with http post. That service, no matter what kind of information, should just send back a big xml file. 1-10 MB. I would like to parse the response stream. I just nee

  • A call to web service which returns an image, audio and all heavy weight data types 2012-02-07

    Hello all I need your advice on this please. Implementing an image database as a service vs giving access to the database directly in a client-server architecture. Which one is the best taking security, performance and other factors into consideratio

  • Can't Get .Net Web Service to Return Json 2012-04-20

    I've read the posts here and followed to the best of my knowledge, but still cannot get my web service to return json. The web service, .Net 4.0 [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1

  • Capturing data from a .Net web-service that fails with an HTTP 500 error code 2008-10-16

    I have a .net web-service hosted in IIS 6.0 that periodically fails with an http 500 because a client connects to it with data that does not match the wsdl. Things like having an element specified in a method as being of type int and the inbound xml

  • 405 Method Not Allowed Error in WCF 2010-03-12

    Can someone spot the problem with this implementation? I can open it up in the browser and it works, but a call from client side (using both jquery and asp.net ajax fails) Service Contract [OperationContract(Name = "GetTestString")] [WebInvoke(Method

  • WCF REST service returns 405: method not allowed for jQuery AJAX GET 2012-04-09

    Even after going through this post wcf REST Services and JQuery Ajax Post: Method not allowed (3) I cannot get past 405: Method not allowed when attempting to invoke a method on my WCF REST service via the following AJAX call: $.ajax({ type: "GET", u

  • Web service that returns any http status code you specify for API testing purposes? 2010-12-08

    A few months ago I remember reading about a useful little web service somebody put together for API testing purposes. Basically, you just did a call like this, e.g.: http://www.someAPItestingtool.com/status/405 And the server would respond with a 405

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.113 (s). 11 q(s)