This project is read-only.
1
Vote

Error when quering a list with lookup columns

description

Unable to cast object of type 'MOEDAL.Parents_StudentItem' to type 'MOEDAL.Parents_StudentFolder'.
Message Unable to cast object of type 'MOEDAL.Parents_StudentItem' to type 'MOEDAL.Parents_StudentFolder'.
Data IDictionary (0 items)

InnerException null
TargetSite 6RuntimeMethodInfo 4
SPItemMappingInfo.MaterializeEntity (DataContext dc, SPDataList list, SPListItem item, SPItemMappingInfo itemMappingInfo, JoinPath joinPath)
Name MaterializeEntity
DeclaringType typeof (SPItemMappingInfo)
ReflectedType typeof (SPItemMappingInfo)
MemberType Method
MetadataToken 100664708
Module 6Module 4
Microsoft.SharePoint.Linq.dll
MDStreamVersion 131072
FullyQualifiedName C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.Linq\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Linq.dll
ModuleVersionId 82badf5e-7930-4bbe-974f-775f6674e3c8
MetadataToken 1
ScopeName Microsoft.SharePoint.Linq.dll
Name Microsoft.SharePoint.Linq.dll
Assembly 6Assembly 4
Microsoft.SharePoint.Linq, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
CodeBase file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SharePoint.Linq/14.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Linq.dll
EscapedCodeBase file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SharePoint.Linq/14.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Linq.dll
FullName Microsoft.SharePoint.Linq, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
EntryPoint null
Evidence 4Evidence 4

ManifestModule qModule 4
Microsoft.SharePoint.Linq.dll

ReflectionOnly False
Location C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.Linq\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Linq.dll
ImageRuntimeVersion v2.0.50727
GlobalAssemblyCache True
HostContext 0

ModuleHandle 5ModuleHandle 4
System.ModuleHandle
MDStreamVersion 131072


MethodHandle 6RuntimeMethodHandle 4
System.RuntimeMethodHandle
Value IntPtr
8791809974216


Attributes PrivateScope, Assembly, Static, HideBySig, HasSecurity
CallingConvention Standard
ReturnType typeof (TEntity)
ReturnTypeCustomAttributes 6ParameterInfo 4
TEntity
ParameterType typeof (TEntity)
Name null
DefaultValue null
RawDefaultValue null
Position -1
Attributes None
Member qRuntimeMethodInfo 4
SPItemMappingInfo.MaterializeEntity (DataContext dc, SPDataList list, SPListItem item, SPItemMappingInfo itemMappingInfo, JoinPath joinPath)

IsIn False
IsOut False
IsLcid False
IsRetval False
IsOptional False
MetadataToken 134217728

ReturnParameter 6ParameterInfo 4
TEntity
ParameterType typeof (TEntity)
Name null
DefaultValue null
RawDefaultValue null
Position -1
Attributes None
Member qRuntimeMethodInfo 4
SPItemMappingInfo.MaterializeEntity (DataContext dc, SPDataList list, SPListItem item, SPItemMappingInfo itemMappingInfo, JoinPath joinPath)

IsIn False
IsOut False
IsLcid False
IsRetval False
IsOptional False
MetadataToken 134217728

IsGenericMethod True
IsGenericMethodDefinition True
ContainsGenericParameters True
IsPublic False
IsPrivate False
IsFamily False
IsAssembly True
IsFamilyAndAssembly False
IsFamilyOrAssembly False
IsStatic True
IsFinal False
IsVirtual False
IsHideBySig True
IsAbstract False
IsSpecialName False
IsConstructor False

StackTrace at Microsoft.SharePoint.Linq.SPItemMappingInfo.MaterializeEntity[TEntity](DataContext dc, SPDataList list, SPListItem item, SPItemMappingInfo itemMappingInfo, JoinPath joinPath)
at lambda_method(ExecutionScope , SPListItem )
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Collections.Generic.List
1..ctor(IEnumerable1 collection)
at Microsoft.SharePoint.Linq.EntitySet
1.Load()
at Microsoft.SharePoint.Linq.EntitySet`1.get_Count()
HelpLink null
Source Microsoft.SharePoint.Linq

comments