Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6247719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:55:37+00:00 2026-05-24T12:55:37+00:00

I am just getting started with ASP.Net MVC 3 with the Facebook C# SDK.

  • 0

I am just getting started with ASP.Net MVC 3 with the Facebook C# SDK. I’ve had pretty good luck so far, but I am having an issue when returning RedirectToAction or CanvasRedirectToAction in a Controller method.

When I click either the Submit or Create New_ button in the view below, I always get send to
/app/app/Event/Create instead of app/Event/Create, resulting in a 404

Thanks in advance!

EventController:

    [CanvasAuthorize(Permissions = "user_about_me,user_events,create_event")]
    public ActionResult Index()
    {
        return View();
    }
    [CanvasAuthorize(Permissions = "user_about_me,user_events,create_event")]
    public ActionResult Create()
    {
        return View();
    }
    [CanvasAuthorize(Permissions = "user_about_me,user_events,create_event")]
    public ActionResult Persist()
    {
       return this.CanvasRedirectToAction("Index", "Event");
    }

Event/Create.cshtml

    @using Facebook.Web.Mvc

    @model App.Models.Event

   @{
       ViewBag.Title = "Create";
    }

    <h2>Create</h2>

    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript">    </script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

    @using (Html.BeginForm("Persist", "Event")) {
    @Html.FacebookSignedRequest();
    @Html.ValidationSummary(true)
    <fieldset>
    <legend>Event</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <p>
            <input type="submit" value="Create" />
            @Html.CanvasActionLink("Create New", "Persist")
        </p>
    </fieldset>
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:55:38+00:00Added an answer on May 24, 2026 at 12:55 pm

    It doesn’t appear like it’s easily possible. My guess is that the javascript that looks at the URL in the frame within the C# SDK doesn’t do a good job of creating the correct path to redirect to. I just got rid of the virtual directory to solve the problem for now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just getting started with ASP.NET MVC. What is the difference between MapRoute and
Just getting started using MVC in ASP.NET, I'm going to have it so users
Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization
I'm just getting started with ASP.NET MVC 2, and playing around with Validation. Let's
I'm just getting started with ASP.NET MVC. I'm going to be using JQuery on
I'm just getting started with ASP.NET MVC, mostly by reading ScottGu's tutorial . To
I am just getting started with ASP.NET MVC and it's great! However, I don't
i am just getting started with ASP.NET MVC and i'm using NHibernate for my
I'm getting started with ASP.NET MVC, but would like to explore further. I've walked
I am just getting started with flex and am using the SDK (not Flex

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.