I can't seem to lick the :
"are you missing a directive or an assembly reference?"
error when compiling my plugin. It keeps giving me an error that opendental and opendentbusiness are not found, yet the references are there, the projects there, removed, added again, etc. No luck and I can't figure out why it is throwing this error and not allowing me to compile the plugin.
Any ideas that anyone has used to fix this issue?
plugin reference woes
Re: plugin reference woes
When this happens to me, it's usually because some change has been made in the full Open Dental solution and not just OpenDental and OpenDentBusiness, that OpenDental and OpenDentBusiness depend on. So I re-compile the whole Open Dental solution with all the projects, and then re-compile my Plugin. I usually quit and restart Visual Studio just for safe measure.
If that still doesn't work, I do a clean solution, then toss the bin and obj folders for all three projects (plugin, OpenDental, OpenDentBusiness). Then I make sure that all the references point to where they should be pointing. Then rebuild.
This seems to fix this problem. Hope that helps
If that still doesn't work, I do a clean solution, then toss the bin and obj folders for all three projects (plugin, OpenDental, OpenDentBusiness). Then I make sure that all the references point to where they should be pointing. Then rebuild.
This seems to fix this problem. Hope that helps

Cheers,
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
Re: plugin reference woes
I am trying as you described and still seem to have issues, the references to OpenDental and OpenDentBusiness keep seeming to fail (the normal icon when I add the reference changes to a little ! icon next to it in Visual Studio after I try to compile...like the reference isn't pointing to the right place, but I can't figure out why this is happening...)
Re: plugin reference woes
When I have this issue, sometimes it helps to remove the project references and re-add them.
- jordansparks
- Site Admin
- Posts: 5716
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: plugin reference woes
I think it's because you need to change the version of dot Net in your plugin to be newer, like 4.7.2.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
Re: plugin reference woes
Jordan, YES! I actually figured that out last night before reading your response here after pulling my hair out for a few weeks. It helps to actually read the compiler output and not just the "error" tab on build....as I discovered it was actually telling me that in a round about way at the beginning of the build.. :p ...then come to find out you already posted about it here! Thanks.
- jordansparks
- Site Admin
- Posts: 5716
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: plugin reference woes
I've never seen an informative message for that problem. I've repeatedly lost hours of time as I have to relearn that hard lesson.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com