Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
Does the form have the same GUID on the prod server
Yes the same!
And it has the same fields ? Added to the same workflow step?
Yes - ive uploaded my local site to production including the DB so they are identical
Ok Im getting strage error now when tring to create new form:
Description: An unhandled exception occurred
Any idea?
Hmm sure all the files are uploaded
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Contour release mode problem
Hi there,
The following code works fine in debug mode but not in release mode:
Any Idea why it behaves like that?
Cheers
mkariti
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
Does the form have the same GUID on the prod server
Yes the same!
Comment author was deleted
And it has the same fields ? Added to the same workflow step?
Yes - ive uploaded my local site to production including the DB so they are identical
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
Hmm sure all the files are uploaded
is working on a reply...