Method get_XXX from assembly YYYY does not have an implementation

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span class=value>I am getting the above error message.

I have an abstract class which defines a method like so:


<div style="text-align:left <span class=value><span style="font-style:italic
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100% Code Snippet

public abstract class Register : IRegister
{

public abstract IContainer NewDal { get; }
}

(though it is originally defined in the interface IRegister
<span class=value> <span class=value>
-
Then I have a class which is implementing the abstract method like

<span class=value>
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100% Code Snippet
public class PRegister : Register
<span class=value>{
<span class=value>public override IContainer NewDal
<span class=value>{
<span class=value>   get
<span class=value>   {
<span class=value><span class=value>        return new Dal();
<span class=value>   }
<span class=value>}<span class=value>



<span class=value>-
Seems ok to me, but I am getting the error as mentioned above when i run my website

System.TypeLoadException: Method get_NewDal in type MyAssembly.PRegister from assembly MyAssembly, Version=1.0.0.25, Culture=neutral, PublicKeyToken=null does not have an implementation.
<span class=value>

Anyone have any idea why this would be the case?
If it were not implemented, it would not compile in the first place, correct?

It might be something dead simple I am missing but I cannot see what is wrong with it.

.NET v1.14
Visual Studio 2003
ASP Website running on Win2k3 IIS 6.0



View the full article
 
Back
Top