Page 1 of 1

Opening OpenDental.sln errors

Posted: Sat Jul 14, 2018 11:55 pm
by sjWiz
I am getting the following error messages ->

error : The project file could not be loaded. Could not find a part of the path.. [for 3 files] below:

\Shared Projects Subversion\EHR\EHR_17_4\EHR\xEHR.csproj
\Shared Projects Subversion\OpenDentalHelp\OpenDentalHelp_17_4\OpenDentalHelp\OpenDentalHelp.csproj
\Shared Projects Subversion\CDT\CDT_17_4\xCDT.csproj

Am I supposed to have these? I thought all the source code and related project files should be downloaded in 1 folder via SVN checkout.


Regards,
sJ

Re: Opening OpenDental.sln errors

Posted: Mon Jul 16, 2018 7:53 am
by cmcgehee
That's just fine that you don't have those projects. Those three projects are within our internal repository and we simply included them in our main solution so that we can see where they reference our open source code. You will still be able to compile Open Dental without these projects.

Re: Opening OpenDental.sln errors

Posted: Tue Jul 17, 2018 1:59 am
by sjWiz
Hi Chris,

Thanks for the timely response. I will try again... is there a specific way of compiling that you recommend that would be able to bypass these messages? I am using VS community right now.

Regards,
sJ

Re: Opening OpenDental.sln errors

Posted: Tue Jul 17, 2018 7:42 am
by cmcgehee
If you want to avoid the errors, you could just create three empty projects that have the same name and file path. But if it were me, I would just ignore the errors unless they cause any actual problems.

Re: Opening OpenDental.sln errors

Posted: Tue Jul 17, 2018 2:17 pm
by sjWiz
I got one red error msg after building:

https://ibb.co/eOLiid

SigPlus library module needed? What about the yellow warnings?

Re: Opening OpenDental.sln errors

Posted: Tue Jul 17, 2018 5:05 pm
by cmcgehee
There's an open bug job that we're working on concerning the SigPlusNet.dll not loading, but it occurs as a runtime exception. I would make sure that your target build platform is x86 (as opposed to Mixed Platforms or Any CPU). If that isn't it, you may need to install the Visual C++ Redistributable.
https://www.microsoft.com/en-us/downloa ... x?id=48145

The yellow warnings you can ignore. We've been doing the same for years. :lol:

Re: Opening OpenDental.sln errors

Posted: Wed Jul 18, 2018 12:15 am
by sjWiz
I tried switching over to x86; still won't work. Also, Windows 10 won't allow me to install that link; says it's already installed w/ VS community.

The SigPlusNET.dll file, I checked, is clearly in the "Required dlls" folder...

Re: Opening OpenDental.sln errors

Posted: Wed Jul 18, 2018 8:52 am
by jsalmon
The "Error: Mixed mode assembly" section on this page might help you.
http://www.opendental.com/manual/sourcecode.html

Sometimes this error happens when the target framework is not compatible. We did upgrade to .NET 4.5.2 in v18.2 and up, maybe that's giving you grief for some reason. I would expect it to give us grief as well but I haven't heard anything about not being able to compile so far. You could try the v18.1 repository and see if that one builds for you to narrow down the problem.

Re: Opening OpenDental.sln errors

Posted: Wed Jul 18, 2018 1:57 pm
by sjWiz
Hi jSalmon,

Ok, I will try to download v18 and see if I have better luck compiling. It also says I need to download ASP.net into VS first so I will do that.

Re: Opening OpenDental.sln errors

Posted: Wed Jul 18, 2018 2:17 pm
by sjWiz
Strangely trying the 'debug mode' vs release mode yields no red errors :)

Are the files that resulted from this build, outputted to the folder [\Open Dental 18\OpenDental\bin\Debug\] sufficient to replace or overwrite those in the default install c drive? If so, which ones should be replaced and which ones remain untouched from the default trial install?


Regards,
sJ

Re: Opening OpenDental.sln errors

Posted: Wed Jul 18, 2018 5:43 pm
by cmcgehee
The results from the debug build are not safe to run when connecting to a database with live patient data. We put all sorts of things in the debug build to make our lives as developers easier that will cause the program to behave in strange ways.

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 2:44 am
by sjWiz
Thanks for letting me know Chris. I won't bother w/ the debug compile anymore.

Jsalmon, seems like the SGEN file is affected. Should I try to create that SGEN.exe.config as outlined in the directions you referred to?


I tried compiling in VS 2017 on a different computer and the same 1 red error popped up again for both OD 17 and 18.. good grief! :?

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 9:33 am
by jsalmon
The entire purpose of the Build section at the bottom of that page is to help developers get past common build errors. I'd say it's a good idea to try it out. What have you got to lose?

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 1:37 pm
by sjWiz
Tried creating an sgen.exe.config file and placed it in every folder where there is an sgen.exe file... still same error showed up.

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 2:30 pm
by cmcgehee
I would try uninstalling the Microsoft Visual C++ redistributable and reinstalling it. If that doesn't help, you might try installing one of the Topaz SigPlus drivers. I guess you should pick one of the options from https://www.sigpluspro.com/ and install it.

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 2:52 pm
by jsalmon
sjWiz wrote:Tried creating an sgen.exe.config file and placed it in every folder where there is an sgen.exe file... still same error showed up.
Did you also try the quick fix from that section as well?
The quick fix for this error is to right click the OD project, properties, build tab, and at the bottom, change 'generate serialization assembly' to off.

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 5:05 pm
by sjWiz
Hi Jason,

I did read the doc u reference a few times over already but it says if I turn it to off, this will "result in Open Dental running a little slower"; so I've been hesitant to do so... Is this significant or negligible difference?

If I do go about editing the SGEN.exe.config file, and changing it to <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>, would it matter to OD v17 or 18 since it may rely on a more modern version like v4.5?

__________

Hi Chris,

I will also try one of the options listed on this site. Should the install path be its default or should I change it to OD's source code folder?

Re: Opening OpenDental.sln errors

Posted: Thu Jul 19, 2018 5:26 pm
by cmcgehee
I would set it to its default path.