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 7751231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:29:41+00:00 2026-06-01T11:29:41+00:00

I am calling asp.net action from proxy to fill the store data. I am

  • 0

I am calling asp.net action from proxy to fill the store data.
I am specifying the url correctly but on make get request to Action it is appending query string params to the call. This is resulting in 404 error.
I am posting my code below,

Asp.net mvc Action

public JsonResult SongsList()
{
        List<MusicFileModel> musicFileModels = MusicFileModel.GetAllMusicFiles();
        return Json(musicFileModels, JsonRequestBehavior.AllowGet);
}

Store definition in Sencha Touch 2

Ext.define('CloudPlayerUI.store.Songs', {
extend: 'Ext.data.Store',
config: {
    model:'CloudPlayerUI.model.song',
    proxy: {
        type: 'ajax',
        url: '/Home/SongsList',
        param:'',
        reader: {
            type: 'json'
        }
    },
    autoLoad:true
}
});

This is the ajax call that is made.

GET http://localhost/Home/SongsList?_dc=1333338051329&page=1&start=0&limit=25 

I am assuming that because, Action doesn’t have any params which is being made my ajax call
it is resulting in an 404 error.
I am not sure the correct way of calling mvc action. Please let me know if I am going wrong.
Any help is appreciated.

update:
I tried adding the same query string params to asp.net mvc action. Still it is causing 404 error. When I open the same url without any query string params in new tab it is returning me Json result.

  • 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-06-01T11:29:42+00:00Added an answer on June 1, 2026 at 11:29 am

    I figured out the issue.

    The 404 error was due to incorrect URL config param defined in the store. Also I added a rootProperty to reader.
    This is how the proxy code looks like.

    Ext.define('CloudPlayerUI.store.Songs', {
    extend: 'Ext.data.Store',
    config: {
        model:'CloudPlayerUI.model.song',
        proxy: {
           url: 'Home/SongsList', //Changes to url
            type:'ajax',
            reader: {
                type: 'json',
                rootProperty: 'ResponseData' //Addeed reader property.
            }
        },
        autoLoad:true }
    });
    

    Constructing return object in Asp.MVC action.

    var results = new
                              { 
                                  Success = true,
                                  ResponseData = musicFileModels
                              };
            return Json(results, JsonRequestBehavior.AllowGet);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling an ASP.NET MVC action public JsonResult GetPatient(string patientID) { ... from
Can anyone help? I have an issue with calling a asp.net webservice from jquery..
I am trying to post some data to a ASP.NET MVC Controller Action. Current
In my ASP.NET MVC app, I have a view that's calling Html.Action(MyAction, this.Model) -
I am currently calling a webservice from an ASP.net page. I am trying to
Below is Jquery function through I'm calling a action in my asp.net MVC application.
When calling an ASP.Net PageMethod, we call it as follows: function doSomething(htmlElement) { PageMethods.GetText(onSuccess,
It appears that calling Html.RenderAction in Asp.Net MVC2 apps can alter the mime type
Clarification: this is not about user agent calls to pages, but Classic ASP calling
Hallo, I have following jquery code for calling ASP.NET MVC controller method that is

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.