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 826 posts 1269 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

  • Comment author was deleted

    Jan 24, 2013 @ 18:01

    Sure thing will take a look

  • Comment author was deleted

    Jan 24, 2013 @ 18:22

    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 826 posts 1269 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

  • Comment author was deleted

    Jan 25, 2013 @ 10:10

    Yup that's tg at umbraco dot com

Please Sign in or register to post replies

Write your reply to:

Draft