I am using contour 1.1 with umbraco 4.5.2 under .net40. I have created a custom workflow type when i goto add workflow in contour i get error after selecting my workflow in the dropdown the error is:
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Forms.UI.Dialogs.editWorkflowDialog.LoadSettings(Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Dialogs\editWorkflowDialog.aspx.cs:110
Umbraco.Forms.UI.Dialogs.editWorkflowDialog.Page_Load(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Dialogs\editWorkflowDialog.aspx.cs:69
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
It seems to have issue when loadingsettings which is where the properties that are publicly accessible and decorated are accessed that code looks like
[Setting("EmailLookUpField", description = "Enter the receiver email lookup field for DMC", control = "Contour.SharedSource.FieldSetting.TextField")]
public string EmailLookUpField { get; set; }
[Setting("DocumentEmailAddressFieldAlias", description = "Email field alias in document that contains email address", control = "Contour.SharedSource.FieldSetting.TextField")]
public string DocumentEmailAddressFieldAlias { get; set; }
[Setting("Subject", description = "Enter the subject", control = "Contour.SharedSource.FieldSetting.TextField")]
public string Subject { get; set; }
[Setting("Message", description = "Enter the intro message", control = "Contour.SharedSource.FieldSetting.TextArea")]
"why are you using Contour.SharedSource.FieldSetting.TextField " DOH it was a case of clipboard inheritance. Updated as per your suggestion and it all works nicely.
Contour custom workflow issue
Guys,
I am using contour 1.1 with umbraco 4.5.2 under .net40. I have created a custom workflow type when i goto add workflow in contour i get error after selecting my workflow in the dropdown the error is:
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Forms.UI.Dialogs.editWorkflowDialog.LoadSettings(Form form) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Dialogs\editWorkflowDialog.aspx.cs:110
Umbraco.Forms.UI.Dialogs.editWorkflowDialog.Page_Load(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Dialogs\editWorkflowDialog.aspx.cs:69
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +49
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
It seems to have issue when loadingsettings which is where the properties that are publicly accessible and decorated are accessed that code looks like
[Setting("EmailLookUpField", description = "Enter the receiver email lookup field for DMC", control = "Contour.SharedSource.FieldSetting.TextField")]
public string EmailLookUpField { get; set; }
[Setting("DocumentEmailAddressFieldAlias", description = "Email field alias in document that contains email address", control = "Contour.SharedSource.FieldSetting.TextField")]
public string DocumentEmailAddressFieldAlias { get; set; }
[Setting("Subject", description = "Enter the subject", control = "Contour.SharedSource.FieldSetting.TextField")]
public string Subject { get; set; }
[Setting("Message", description = "Enter the intro message", control = "Contour.SharedSource.FieldSetting.TextArea")]
public string Message { get; set; }
Anyone any ideas?
Regards
Ismail
Comment author was deleted
Hi Ismail why are you using Contour.SharedSource.FieldSetting.TextField and Contour.SharedSource.FieldSetting.TextArea ?
You can simply use Umbraco.Forms.Core.FieldSetting.TextField and Umbraco.Forms.Core.FieldSetting.TextArea
Or if you do want to use field setting types from another assembly (then Umbraco.Forms.Core) you must add , assembly = "Contour.SharedSource"
Tim,
"why are you using Contour.SharedSource.FieldSetting.TextField " DOH it was a case of clipboard inheritance. Updated as per your suggestion and it all works nicely.
Many thanks
Ismail
Comment author was deleted
Ow and custom fieldsetting types are only possible from version 1.1.3 and up
is working on a reply...