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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:03:20+00:00 2026-06-17T21:03:20+00:00

I’m attempting to use Breeze to query a ASP.Net Web API endpoint and the

  • 0

I’m attempting to use Breeze to query a ASP.Net Web API endpoint and the query fails – with the data object containing:

internalError: TypeError
arguments: Array[2]
0: "createCtor"
1: null
length: 2
__proto__: Array[0]
get message: function () { [native code] }
get stack: function () { [native code] }
set message: function () { [native code] }
set stack: function () { [native code] }
type: "non_object_property_load"

The data object has a message (and responsetext) property which contains the full json response from the query which looks ok and the metadata thats been generated matches the response – it also records status 200 for the response

So I’m guessing there is some kind of issue mapping the response to an object on the client side?

I’m using the NuGet package for Breeze version 0.85.2

I can get the sample ToDo project to run fine on the same environment

My project does use domain objects, contexts etc all from different assemblies and namespaces but I understood thats supported in this version?

Also that one of the properties is an enum – in the metadata this is defined as {\"name\":\"State\",\"type\":\"Edm.Self.State\",\"nullable\":\"false\"}] but in the response is comes through as an integer

Looking for tips on how to debug this further on the client side

Update

comparing the working sample with my code, the error looks to be coming from this function:

/**
Returns the constructor for this EntityType.
@method getEntityCtor
@return {Function} The constructor for this EntityType.
**/
ctor.prototype.getEntityCtor = function () {
    if (this._ctor) return this._ctor;
    var typeRegistry = this.metadataStore._typeRegistry;
    var aCtor = typeRegistry[this.name] || typeRegistry[this.shortName];
    if (!aCtor) {
        var createCtor = v_modelLibraryDef.defaultInstance.createCtor;
        if (createCtor) {
            aCtor = createCtor(this);
        } else {
            aCtor = function() {
            };
        }
    }
    this._setCtor(aCtor);
    return aCtor;
};

The defaultInstance property on v_modelLibraryDef is undefined in my running code – what am I missing on the configuration of breeze for that to happen?

Update 2 – Resolved but why

Ok so I got this working – I was missing a reference to knockout (which I was planning to use but hadn’t got that far) – I was a little bit misled by the breeze prerequisites which don’t mention knockout so if anyone can explain how I could have got this working without knockout and if its a bug then the points are yours

  • 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-17T21:03:21+00:00Added an answer on June 17, 2026 at 9:03 pm

    Sorry you struggled Richard. We’ll try to learn from it and spare the next person the pain you endured.

    FWIW, we do not say that Knockout is a prerequisite … because KO is not a prerequisite. You can use Angular or Backbone instead and we anticipate other alternatives in future.

    We don’t want to drown you in configuration options when you’re just learning Breeze. So we picked KO as the default model library (just as jQuery is the default AJAX provider and Web API is the default “dataservice” technology). We say so in numerous places; prerequisites looks like another good place to mention it.

    As it happens, you intended to go with KO anyway so no configuration would have been necessary. Most folks start with something like the MVC template which includes KO and loads it for you in the Index.cshtml.

    Apparently you started from a clean slate (“ASP Empty Web Application” perhaps?). The Breeze Web API NuGet package strives to be spare and therefore does not include KO. We figured (incorrectly) that you would add it yourself … in the right script order … if you wanted to use KO. Clearly we could do a better job of documenting this particular development path … especially as we like it so much ourselves. Thanks for pointing it out.

    The other problem is that the exception was not helpful. You can see from other attempts to answer your question that even folks with Breeze experience couldn’t recognize what was wrong. We’ll look to see if we can detect the missing script a little earlier and throw an exception with a better message.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am confused How to use looping for Json response Array in another Array.
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
i got an object with contents of html markup in it, for example: string
I want to construct a data frame in an Rcpp function, but when I

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.