Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fault Exception - Method not found

Tags:

c#

asp.net

wcf

I'm having some trouble with references to an external project that contains services for my application. After changing the types of some properties in a class, I got errors like "Method not found: get_Size() (Where Size is the name of the field)

After rebuilding numerous times, deleting the class and adding a new one with a different name, I'm faced with a new but similar problem. Now the application can't find a method that is in my Factory class:

Method not found: 'Ropes.Services.Contracts.Data.SearchResultPage`1 Ropes.Services.Business.Experience.ExperienceFactory.Search(Ropes.Services.Business.Search.SearchRequest)'.

I've recompiled a million times; emptied bin and obj folders, deleted and re-added references but to no avail. My boss is coming down on me so if anyone can help it would be greatly appreciated and I assure you karma will look kindly on you :)

Thank you

like image 617
Jesse Roper Avatar asked Oct 25 '22 05:10

Jesse Roper


2 Answers

The solution was to add the offending .dll to the GAC. Thanks for your help guys.

like image 89
Jesse Roper Avatar answered Nov 15 '22 07:11

Jesse Roper


Hmm first check the definitions (public, private, protected etc), then check the Build order. If everything is ok, try to open new solution, add same references to new solution and try to build - use function. If the problem keeps occur, then you have a problem :) letme search a bit :)

like image 28
Serkan Hekimoglu Avatar answered Nov 15 '22 07:11

Serkan Hekimoglu