mtaylor Registered: 10/14/09
Posts: 1
|
| | 10/14/09 at 08:47 AM | Reply with quote | #1 |
|
I'm experiencing a rather bizarre problem:
I've converted a simple app from 6.1.1 to 6.2.0, rebuilt all of the pages and am now getting an error message :
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30518: Overload resolution failed because no accessible 'New' can be called with these arguments:
Source Error:
| Line 1901: Line 1902: Dim filter2 As CompoundFilter = New CompoundFilter(CompoundFilter.CompoundingOperators.Or_Operator) Line 1903: filter2.AddFilter(New BaseClasses.Data.ColumnValueFilter(BaseClasses.Data.BaseTable.CreateInstance("ClarityHSRA.Business.ClarityGlobal_TaskActionsTable, App_Code").TableDefinition.ColumnList.GetByUniqueName("ClarityGlobal_TaskActions_.Application"), "Healthandsafety", BaseClasses.Data.BaseFilter.ComparisonOperator.EqualsTo, True, ))Line 1904: filter2.AddFilter(New BaseClasses.Data.ColumnValueFilter(BaseClasses.Data.BaseTable.CreateInstance("ClarityHSRA.Business.ClarityGlobal_TaskActionsTable, App_Code").TableDefinition.ColumnList.GetByUniqueName("ClarityGlobal_TaskActions_.Application"), "Healthandsafety", BaseClasses.Data.BaseFilter.ComparisonOperator.EqualsTo, False, ))Line 1905: filter.AddFilter(filter2) |
Source File: C:\a\App_Code\Tasks\UpdateTask.Controls.vb Line: 1903
- I can see that line 1903 and 1904 are contradictory but the WHERE clause on the "updatetask" page only has two statements - one is that "Application" should equal "healthandsafety" and the other is unrelated to the problem.
If I comment out lines 1902-1905 and add in a second where clause manually then the App compiles and runs correctly but as soon as I rebuild the app, the above code is regenerated and the app fails.
Please can somebody help?
|
| Loading... | |
razi

Co-Founder
Registered: 10/14/03
Posts: 694
|
| | 10/14/09 at 11:40 AM | Reply with quote | #2 |
|
Mark,
The generated code is missing an additional argument. Notice both 1903 and 1904 end with something like "True, )" - there needs to be something after the comma.
1903 and 1904 are not contradictory. Once passes the fourth argument as True and the other passes False. The fourth argument determines whether the value should be compared with the raw Id or with the Display Foreign Key As (DFKA) expanded value.
I am not sure why this is happening without looking at your application. I suggest you open a support case with a copy of your application so we can look at it and determine what might be going wrong. You can report bugs even if you do not have a support contract.
Thanks, Razi |
| Loading... | |
BenD

Iron Speed MVP Consulting Organization
Registered: 07/02/09
Posts: 133
| |