ObjectDataSource cannot detect any new [DataObjectMethods] added to the DLL

  My issue is that I have a Class Library project that performs  business services. This dll contains methods marked with [DataObjectMethod( ....)] attributes. When I first time had added reference to this Dll from the ASP.NET project, the ObjectDataSources were able to detect all my methods from the business service dll, but when I have added several new methods to the dll [ also marked with [DataObjectMethod attributes], the ObjectDataSources on the ASP.NET pages only detect old ones, but not newly added.

 So I decided to remove reference to this DLL from the ASP.NET project. I was able to delete it, then I rebuild the whole solution and when I tried to add this reference back, I get the Message that this reference is already added. Again my ObjectDataSources just do not "see" any new methods from the updated DLL!!!

It really drives me nuts. Why I just cannot remove the reference, recompile both DLL and ASP.NET, then add this reference and use my updated DLL???? Please help!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
>I get the Message that this reference is already added
I am not 100% sure which file it is, but some of the project/solution files has to be edited with notepad to get the reference removed...
alik13Author Commented:
Thank you angelIII, I will try it, but I think that this is just another BUG in Visual Studio 2005...
when you say you removed the reference of the dll, did you make sure that the copy from the bin folder was deleted? if not, delete it yourself .. to debug the problem about the new methods not seen, i would advice you to add the reference to the dll as a project reference .. then you can run the test project and also debug into the dll code .. you will be able put breakpoints into dll code and debug. ...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alik13Author Commented:
Thank you Rejo, I will try your suggestion.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.