Click here to Skip to main content
15,905,028 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Compare Validator Pin
Dinesh Mani4-Mar-10 18:08
Dinesh Mani4-Mar-10 18:08 
GeneralRe: Compare Validator Pin
FEMDEV4-Mar-10 23:20
FEMDEV4-Mar-10 23:20 
AnswerRe: Compare Validator Pin
4anusha44-Mar-10 18:37
4anusha44-Mar-10 18:37 
QuestionStyling the Ajax ComboBox Pin
paper674-Mar-10 4:47
paper674-Mar-10 4:47 
AnswerRe: Styling the Ajax ComboBox Pin
Arindam Tewary4-Mar-10 22:07
professionalArindam Tewary4-Mar-10 22:07 
GeneralRe: Styling the Ajax ComboBox Pin
paper675-Mar-10 3:42
paper675-Mar-10 3:42 
Questionif/else condition in a repeater item Pin
benams4-Mar-10 2:56
benams4-Mar-10 2:56 
AnswerRe: if/else condition in a repeater item Pin
Not Active4-Mar-10 3:00
mentorNot Active4-Mar-10 3:00 
AnswerRe: if/else condition in a repeater item Pin
T M Gray4-Mar-10 5:14
T M Gray4-Mar-10 5:14 
AnswerRe: if/else condition in a repeater item Pin
PunkIsNotDead4-Mar-10 11:56
PunkIsNotDead4-Mar-10 11:56 
AnswerRe: if/else condition in a repeater item Pin
xbmly4-Mar-10 17:43
xbmly4-Mar-10 17:43 
Questioncode hightlighting while submitting article Pin
Ashok Nalam4-Mar-10 2:48
Ashok Nalam4-Mar-10 2:48 
AnswerRe: code hightlighting while submitting article Pin
sriharsha_124-Mar-10 22:44
sriharsha_124-Mar-10 22:44 
QuestionAuthentication and Membership Pin
#realJSOP4-Mar-10 2:17
professional#realJSOP4-Mar-10 2:17 
AnswerRe: Authentication and Membership Pin
Not Active4-Mar-10 3:02
mentorNot Active4-Mar-10 3:02 
GeneralRe: Authentication and Membership Pin
#realJSOP4-Mar-10 3:35
professional#realJSOP4-Mar-10 3:35 
QuestionDataGrid or GridView Pin
sriharsha_124-Mar-10 2:11
sriharsha_124-Mar-10 2:11 
AnswerRe: DataGrid or GridView Pin
Gaurav K Singh7-Mar-10 19:13
Gaurav K Singh7-Mar-10 19:13 
QuestionListbox navigation Pin
Santosh Behara4-Mar-10 1:27
Santosh Behara4-Mar-10 1:27 
QuestionMvc POST - HTTP 405 - Resource not allowed [modified] Pin
Jammer4-Mar-10 1:10
Jammer4-Mar-10 1:10 
Hi All,

I've got a really simple Mvc app that I'm having trouble communicating with via Fiddler.

My Controller looks like this:

[ActionName("AddEmail")]
[AcceptVerbs(HttpVerbs.Post)]
public EmptyResult AddEmail(FormCollection collection)
{
    Console.WriteLine("I called the AddEmail ActionMethod!");

    return new EmptyResult();
}


And I have this mapped in Global.asax like this:

public class MvcApplication : System.Web.HttpApplication
{
    public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        //routes.MapRoute(

        routes.MapRoute(
            "Default",
            "{controller}",
            new { controller = "Test", action = "AddEmail", id = "" }
        );
    }

    protected void Application_Start()
    {
        RegisterRoutes(RouteTable.Routes);
    }
}


Using fiddler to create a POST with a simple html form in results in an HTTP 405 error saying that the resource is not allowed.

Not sure what to check in terms of configuration in order to get this to accept POST requests. Any ideas would be much appreciated. I'm using IIS 5.1.

Thanks,
Jammer
My Blog | Articles | DMon | SampleSort
modified on Thursday, March 4, 2010 7:26 AM

Questionuser details Pin
arkiboys4-Mar-10 0:49
arkiboys4-Mar-10 0:49 
AnswerRe: user details Pin
Not Active4-Mar-10 1:53
mentorNot Active4-Mar-10 1:53 
QuestionGetting the Addons installed on the Browser!!! Pin
Minimech4-Mar-10 0:46
Minimech4-Mar-10 0:46 
AnswerRe: Getting the Addons installed on the Browser!!! Pin
T M Gray4-Mar-10 10:34
T M Gray4-Mar-10 10:34 
AnswerRe: Getting the Addons installed on the Browser!!! Pin
Minimech4-Mar-10 10:42
Minimech4-Mar-10 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.