[Return response] gives me an exception
I'm stuck with a weird problem, I'm using a pattern from DoFactory's Design Pattern Framework in designing a website connecting to sql server DB,
I have an object called PurchaseOrder, I implemented all PurchaseOrder helping objects throughout all pattern layers, The problem now in the below two lines of code in the service layer:
While debugging, following the [return response;] statement I get an Exception of type 'System.ExecutionEngineException'. I don't see any other details about the exception, BTW, Exception appears after the return statement and before exiting the function, in other words, before the debugger reaches back to the Controller. .
Here is what I tried:
1- tried to return new PurchaseOrderResponse from this function and worked without exceptions.
2- tried the below lines of code, after making PurchaseOrder object holding only an ID, but gave me the same exception
I have attached two screen shots:
Please let me know if anyone has any idea .
Thomas Miller, Mar 17, 2010