Method X from type Y in assembly Z has no implementation

I am very confused!

I have a solution that when publishing and deploying gives me the following error:

Exception information: Exception type: HttpException Exception message: Method 'GetDemosSubsidiaryById' in type 'DG.Crm.DataAccess.Crm2011WS.Repositories.ReferenceEntitiesRepository' from assembly 'DG.Crm.DataAccess.Crm2011WS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. <stack trace> 

Obviously, it builds great, and the method is implemented and definitely exists in the library. I used a reflector to check the deployed DLLs, and I don’t see anything unusual there - classes exist, types exist, the method is implemented. The specific method he complains about is not even called.

I deleted all the links and read them in the solution.

I recreated DG.Crm.DataAccess.Crm2011WS.Repositories.ReferenceEntitiesRepository using the "Implementation Interface" shortcut in Visual Studio.

The solution loads and works fine in Visual Studio.

What am I missing here or where else can I find more information?

edit to add to the solution structure:

enter image description here

The 2011WS library implements the interfaces that are in the Common library. Both of them then refer to the WebApps MVC web application.

+4
source share
2 answers

Turns out there was an old version of one of the libraries in the GAC. The problem I ran into was the conflicting library was the DTO, not the ones referenced by the error.

So, in my case, be more careful about living in the GAC!

+2
source

Just FYI ... I had the same exact error. in my case, it turned out that assembly B refers to assembly A, which was not in the GAC. the error indicated a problem with assembly A, so it was a bit wrong.

+3
source

All Articles