O'Reilly Forums: Strange Method Not Found Exception - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Strange Method Not Found Exception Rate Topic: -----

#1 User is offline   joer00 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 07-December 10

Posted 10 April 2012 - 07:29 AM

I am using LINQPAd to write small c# code to do some database work using my custom data server implementation.

The program basicallt works, I can GET the data but using my store method I get a "method not found exception".
This must be a weird bug in LINQPAD as it makes no sense. If I use reflection inside the program in LINQPAD that method is there and I also can call it via Invoke. However it fails when the component calls it internally.

The method is an override of the parents abstract class "public abstract Guid GetObjectId(object pObject);" and its implementation public override Guid GetObjectId(object pObject) ....

As linqpad has no debugger, how can I found out the problem ?

Joe

Below the LINQ error detail:

5MissingMethodException 4
Method not found: 'System.Guid WPU.BaseInterfaces.Data.DataServer.GetObjectId(System.Object)'.
Message Method not found: 'System.Guid WPU.BaseInterfaces.Data.DataServer.GetObjectId(System.Object)'.
Data IDictionary (0 items)

InnerException null
TargetSite 6RuntimeMethodInfo 4
DataServer.AddOrAttach (String lBaseClassName, Object pObject)
Name AddOrAttach
DeclaringType typeof (DataServer)
ReflectedType typeof (DataServer)
MemberType Method
MetadataToken 100663319
Module 6RuntimeModule 4
WPU.Data.DataServerEF4ModelFirst2.dll
MDStreamVersion 131072
FullyQualifiedName <Unknown>
ModuleVersionId d5934be2-e5a3-47df-b35b-52b7485222d4
MetadataToken 1
ScopeName WPU.Data.DataServerEF4ModelFirst2.dll
Name <Unknown>
Assembly 6RuntimeAssembly 4
WPU.Data.DataServerEF4ModelFirst2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
CodeBase file:///C:/Programming/WPUSprint2/SprintCommercial2/WPU.Web/MEFComponents/WPU.Data.DataServerEF4ModelFirst2.shadow
FullName WPU.Data.DataServerEF4ModelFirst2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
EntryPoint null
Evidence 5Evidence (3 items) 4
SHA1 SHA256 MD5 Value SecurityZone
81 AD 26 DC A1 A7 65 DB 99 BC 7E 4A DA BE 56 F8 85 CB 78 A9 byte[] 1C 14 EF EC 3F 59 A8 8D 31 45 0F E2 2A 09 B9 25
file:///C:/Programming/WPUSprint2/SprintCommercial2/WPU.Web/MEFComponents/WPU.Data.DataServerEF4ModelFirst2.shadow
MyComputer

PermissionSet PermissionSet (0 items)

SecurityRuleSet Level2
ManifestModule qRuntimeModule 4
WPU.Data.DataServerEF4ModelFirst2.dll

ReflectionOnly False
Location
ImageRuntimeVersion v4.0.30319
GlobalAssemblyCache False
HostContext 0
IsDynamic False
EscapedCodeBase file:///C:/Programming/WPUSprint2/SprintCommercial2/WPU.Web/MEFComponents/WPU.Data.DataServerEF4ModelFirst2.shadow
IsFullyTrusted True

ModuleHandle 5ModuleHandle 4
System.ModuleHandle
MDStreamVersion 131072


IsSecurityCritical True
IsSecuritySafeCritical False
IsSecurityTransparent False
MethodHandle 6RuntimeMethodHandle 4
System.RuntimeMethodHandle
Value IntPtr
281387936


Attributes PrivateScope, Private, HideBySig
CallingConvention Standard, HasThis
ReturnType typeof (Void)
ReturnTypeCustomAttributes 6RuntimeParameterInfo 4
Void
ParameterType typeof (Void)
Name null
DefaultValue null
RawDefaultValue null
MetadataToken 134217728
Position -1
Attributes None
Member qRuntimeMethodInfo 4
DataServer.AddOrAttach (String lBaseClassName, Object pObject)

IsIn False
IsOut False
IsLcid False
IsRetval False
IsOptional False

ReturnParameter 6RuntimeParameterInfo 4
Void
ParameterType typeof (Void)
Name null
DefaultValue null
RawDefaultValue null
MetadataToken 134217728
Position -1
Attributes None
Member qRuntimeMethodInfo 4
DataServer.AddOrAttach (String lBaseClassName, Object pObject)

IsIn False
IsOut False
IsLcid False
IsRetval False
IsOptional False

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

StackTrace at WPU.Data.DataServerEF4ModelFirst.DataServer.AddOrAttach(String lBaseClassName, Object pObject)
at WPU.Data.DataServerEF4ModelFirst.DataServer.RegisterObject[T](T pObject)
HelpLink null
Source WPU.Data.DataServerEF4ModelFirst2
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users