Copied to clipboard

Flag this post as spam?

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


  • MK 429 posts 906 karma points
    Mar 29, 2013 @ 12:58
    MK
    0

    Contour release mode problem

    Hi there,

    The following code works fine in debug mode but not in release mode:

     

      if (e.Form.Id == new Guid("b62ffdb4-1620-44a6-8859-465f36b75b89"))
               {
                   e.Record.GetRecordField("CategoryId").Values.Clear();
                   e.Record.GetRecordField("CategoryId").Values.Add(Node.GetCurrent().Id);
                   e.Record.GetRecordField("NodeName").Values.Clear();
                   e.Record.GetRecordField("NodeName").Values.Add(DateTime.Now.ToString());
                   e.Record.GetRecordField("CategoryName").Values.Add(Node.GetCurrent().Name);
                   RecordStorage rs = new RecordStorage();
                   rs.UpdateRecord(e.Record, e.Form);
                   rs.UpdateRecordXml(e.Record, e.Form);
                   rs.Dispose();
               }

     

    Any Idea why it behaves like that?

    Cheers

    mkariti

     

  • MK 429 posts 906 karma points
    Mar 29, 2013 @ 13:39
    MK
    0

    Ok so it seems that its nothing to do with the mode.

    For some reason the code will not work on the production server....!?

  • Comment author was deleted

    Mar 29, 2013 @ 13:44

    Does the form have the same GUID on the prod server

  • MK 429 posts 906 karma points
    Mar 29, 2013 @ 13:49
    MK
    0

    Yes the same!

  • Comment author was deleted

    Mar 29, 2013 @ 14:02

    And it has the same fields ? Added to the same workflow step?

  • MK 429 posts 906 karma points
    Mar 29, 2013 @ 14:05
    MK
    0

    Yes - ive uploaded my local site to production including the DB so they are identical

  • MK 429 posts 906 karma points
    Mar 29, 2013 @ 14:19
    MK
    0

    Ok Im getting strage error now when tring to create new form:

     

    Method not found: 'Umbraco.Forms.Core.Form Umbraco.Forms.Data.Storage.FormStorage.InsertForm(Umbraco.Forms.Core.Form)'.

    Description: An unhandled exception occurred

     

     

    Any idea?


  • Comment author was deleted

    Mar 29, 2013 @ 14:23

    Hmm sure all the files are uploaded

Please Sign in or register to post replies

Write your reply to:

Draft