5

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

Jesse Roper
  • 1,269
  • 7
  • 31
  • 56
  • 1
    What was the exact changes you made? Perhaps that will help us to narrow down. – Aliostad Oct 05 '10 at 12:16
  • I changed the types of some properties. I reverted the changes, but the same problem persists. I had an int field and a double field and i changed them to int? and double? respectively. Then I changed the both to strings. Then I said screw it and changed them back because of the problem – Jesse Roper Oct 05 '10 at 12:26

2 Answers2

2

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

Jesse Roper
  • 1,269
  • 7
  • 31
  • 56
1

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 :)

Serkan Hekimoglu
  • 4,234
  • 5
  • 40
  • 64
  • I tried your suggestion and am having the same problem. Not sure if this is related, but I'm also getting this message when trying to step through the service call: – Jesse Roper Oct 05 '10 at 12:38
  • Unable to automatically step into the server. The debugger failed to stop in the server process. Debugging is enabled in my web.config. – Jesse Roper Oct 05 '10 at 12:39
  • Also, I'm not sure what you mean by 'Check the build order' – Jesse Roper Oct 05 '10 at 12:39
  • I mean, when you make some changes in method, the changes wont appear instantly. You need to Build project which you made changes, then run the project. Project Build Order manages this :) – Serkan Hekimoglu Oct 05 '10 at 12:43