Coder Social home page Coder Social logo

Comments (4)

mcintyre321 avatar mcintyre321 commented on July 27, 2024

Do you have the stacktrace? I've tried this in the example project, where it works, but it may be on MVC3. The stacktrace should be helpful.

This might happen if your Site class self-references itself I think.

from formfactory.

mcghub avatar mcghub commented on July 27, 2024

Here's the definition for the Site class:

public class Site
{
    //Properties
    public int Id { get; set; }
    public string Name { get; set; }
    public string Domain { get; set; }

    //Navigations
    public virtual List<Page> Pages { get; set; }
}

If I remove the virtual Pages property it works.

Here's the call stack:

App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Property_System_Object_cshtml.Execute() Line 75 + 0xdf bytes    C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_Block_cshtml.Execute() Line 18 + 0x36 bytes   C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_cshtml.Execute() Line 17 + 0x4d bytes C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Property_System_Object_cshtml.Execute() Line 75 + 0xdf bytes    C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_Block_cshtml.Execute() Line 18 + 0x36 bytes   C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_cshtml.Execute() Line 17 + 0x4d bytes C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Property_System_Object_cshtml.Execute() Line 75 + 0xdf bytes    C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_Block_cshtml.Execute() Line 18 + 0x36 bytes   C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_cshtml.Execute() Line 17 + 0x4d bytes C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Property_System_Object_cshtml.Execute() Line 75 + 0xdf bytes    C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_Block_cshtml.Execute() Line 18 + 0x36 bytes   C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Form_Property_cshtml.Execute() Line 17 + 0x4d bytes C#
[External Code] 
App_Web_lszlwmbd.dll!ASP._Page_Views_Shared_FormFactory_Property_System_Object_cshtml.Execute() Line 75 + 0xdf bytes    C#

from formfactory.

mcintyre321 avatar mcintyre321 commented on July 27, 2024

What is the class definition for Page? I suspect it is a property on there.

Can you also use ICollection rather that List on the method signature? The ICollection renderer is better.

from formfactory.

mcintyre321 avatar mcintyre321 commented on July 27, 2024

Can't reproduce

from formfactory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.