WCF error i think... help...

26 views
Skip to first unread message

heresandyboy

unread,
Jun 27, 2008, 6:20:30 AM6/27/08
to Sinergia Help Desk
HI all, long time no see, have just resumed wotking on my custom
helpdesk. I have been customising it for a while and sent screenshots
etc of the type of stuff i have done before. i am simply trying to add
yet another custom field to the case form and cases table etc but am
getting the following error:

Error Message: Problems while trying to establish a connection with
the workflow's engine backend. Please contact your system
administrator. Inner Exception: The formatter threw an exception while
trying to deserialize the message: There was an error while trying to
deserialize parameter http://tempuri.org/:caseData. The InnerException
message was 'Error in line 13 position 58. 'Element' 'IDCaseType' from
namespace 'http://schemas.datacontract.org/2004/07/Sinergia.Datatypes'
is not expected. Expecting element 'FixTime'.'. Please see
InnerException for more details.

at Sinergia.Logic.CaseManager.OpenNewCase(CaseData newCase) in D:\src
\Projects\Logic\CaseManager.cs:line 45 at
CaseForm.OpenNewCase(CaseData caseData) in c:\Inetpub\wwwroot\Sinergia
\Web\Helpdesk\restricted\caseForm.aspx.cs:line 430 at
CaseForm.btnSubmit_Click(Object sender, EventArgs e) in c:\Inetpub
\wwwroot\Sinergia\Web\Helpdesk\restricted\caseForm.aspx.cs:line 360 at
System.Web.UI.WebControls.Button.OnClick(EventArgs e) at
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

FixTime is the new field, it is set to only be visible when at sending
a solution and setting the case as wait for user confirmation, its to
keep a record of the date time the solution was sent to the customer.
The only thing i have done differently to all the other custom fields
is try to have it only display at this stage and have it update the
db.

Im not able to figure out this problem :( im thinking i need to change
the order of the fields in WCF somewhere but cant find where

anyone help?

gabouy

unread,
Jun 29, 2008, 12:20:58 PM6/29/08
to sinergia-...@googlegroups.com
andy,

From the exception it seems you added a new field not using the casedatatype designer.
In this case you should add a new field in the db, and a new field in the CaseData class, plus modify the data access logic, and the corresponding controls in the CaseForm.aspx.

Have you created a new field in the database?, and a new field in CaseData? it seems so if its trying to deserialize it.

regards,
gabo
--
http://blog.gabouy.com

heresandyboy

unread,
Jun 30, 2008, 3:03:08 PM6/30/08
to Sinergia Help Desk
Hi,

Yeah i have added several new fields in the past, this is the first
one that is only used in an update scenario, all the others have just
been used to enter new case info. I have modified the following files
after searching for all references to Priority in an attempt to copy
all the code to reproduce it as a fixtime field.
CaseData.cs
CaseDataAccess.cs
TicketService.cs
WSCaseData.cs
CaseForm.aspx
CaseForm.aspx.cs
Sinergia.sql
The error does not appear until a new case has been taken opened, then
assigned, the error occurs upon opening the case after its assigned, i
cant remember fully but i think if i have the new field display at
open case stage i get the same error. Fancy some before and after
source code?

gabouy

unread,
Jul 7, 2008, 9:20:54 AM7/7/08
to sinergia-...@googlegroups.com
yeah, send the source code over, along with the database (zipped mdf, or sql scripts)

regards,
gabo
--
http://blog.gabouy.com
Reply all
Reply to author
Forward
0 new messages