Click here to Skip to main content
15,887,262 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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
mve#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
mve#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 
GeneralRe: Getting the Addons installed on the Browser!!! Pin
T M Gray4-Mar-10 11:04
T M Gray4-Mar-10 11:04 
GeneralRe: Getting the Addons installed on the Browser!!! Pin
Minimech4-Mar-10 21:57
Minimech4-Mar-10 21:57 
Questionhow to print Landscape report using ASP.Net Pin
alisolution4-Mar-10 0:45
alisolution4-Mar-10 0:45 
AnswerRe: how to print Landscape report using ASP.Net Pin
Gaurav K Singh7-Mar-10 19:18
Gaurav K Singh7-Mar-10 19:18 
QuestionVisitor's Feedback Pin
awedaonline3-Mar-10 23:25
awedaonline3-Mar-10 23:25 
AnswerRe: Visitor's Feedback Pin
R. Giskard Reventlov3-Mar-10 23:37
R. Giskard Reventlov3-Mar-10 23:37 
GeneralRe: Visitor's Feedback Pin
tunsten4-Mar-10 2:26
tunsten4-Mar-10 2:26 
QuestionHow to convert a dataset to Excelsheet ? Pin
Subin Mavunkal3-Mar-10 22:54
Subin Mavunkal3-Mar-10 22:54 
AnswerRe: How to convert a dataset to Excelsheet ? Pin
April Fans3-Mar-10 23:25
April Fans3-Mar-10 23:25 
GeneralRe: How to convert a dataset to Excelsheet ? Pin
Subin Mavunkal4-Mar-10 0:48
Subin Mavunkal4-Mar-10 0:48 
QuestionPostback event not firing from checkbox inside Gridview Pin
Santhosh Sebastian Mattathil3-Mar-10 22:01
Santhosh Sebastian Mattathil3-Mar-10 22:01 
AnswerRe: Postback event not firing from checkbox inside Gridview Pin
m@dhu3-Mar-10 22:37
m@dhu3-Mar-10 22:37 

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.