Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Griffiths 791 posts 1189 karma points c-trib
    Jan 24, 2013 @ 17:31
    Martin Griffiths
    0

    CodeFirst runtime dependency problem!!

    Hi Tim

    I've stumbled into a runtime depency problem when writing CodeFirst forms that have a custom FieldPreValueSourceType.

    At first I wrote my forms and SourceTypes within a single VS project but noticed I was getting the following error at runtime (see screenshot).

    I'm pretty sure this is because the FPVST has to be loaded BEFORE the CodeFirst form. My only way of solving this was to seperate into them 2 projects and drop them in one at a time and recycling the app pool each time.

    This of course isnt particularly good for deployment as it would have to be documented (and nobody reads documentation!). 

    Is there anything you can do to sort this out?

    Kind regards

    Martin

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 24, 2013 @ 18:01
    Tim Geyssens
    0

    Sure thing will take a look

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 24, 2013 @ 18:22
    Tim Geyssens
    1

    Changed the order so first prevalue sources are created and then forms so I would hope that takes care of the issue :)

    Part of 3.0.7 WIP http://nightly.umbraco.org/Umbraco%20Contour/3.0.7%20WIP/ (you'll only need to update the codefirst assembly to test)

  • Martin Griffiths 791 posts 1189 karma points c-trib
    Jan 25, 2013 @ 09:26
    Martin Griffiths
    0

    Hi Tim

    Yes that did the trick, your rapid response as always is much appreciated!

    Do you have an email address I can get you on?

    Thanks

    Martin

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 25, 2013 @ 10:10
    Tim Geyssens
    0

    Yup that's tg at umbraco dot com

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies