Opening OpenDental.sln errors

This forum is for programmers who have questions about the source code.
Post Reply
sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Opening OpenDental.sln errors

Post by sjWiz » Sat Jul 14, 2018 11:55 pm

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

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Opening OpenDental.sln errors

Post by cmcgehee » Mon Jul 16, 2018 7:53 am

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.
Chris McGehee
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Tue Jul 17, 2018 1:59 am

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

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Opening OpenDental.sln errors

Post by cmcgehee » Tue Jul 17, 2018 7:42 am

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.
Chris McGehee
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Tue Jul 17, 2018 2:17 pm

I got one red error msg after building:

https://ibb.co/eOLiid

SigPlus library module needed? What about the yellow warnings?

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Opening OpenDental.sln errors

Post by cmcgehee » Tue Jul 17, 2018 5:05 pm

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:
Chris McGehee
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Wed Jul 18, 2018 12:15 am

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...

User avatar
jsalmon
Posts: 1551
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Opening OpenDental.sln errors

Post by jsalmon » Wed Jul 18, 2018 8:52 am

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.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Wed Jul 18, 2018 1:57 pm

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.

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Wed Jul 18, 2018 2:17 pm

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

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Opening OpenDental.sln errors

Post by cmcgehee » Wed Jul 18, 2018 5:43 pm

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.
Chris McGehee
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Thu Jul 19, 2018 2:44 am

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! :?

User avatar
jsalmon
Posts: 1551
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Opening OpenDental.sln errors

Post by jsalmon » Thu Jul 19, 2018 9:33 am

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?
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Thu Jul 19, 2018 1:37 pm

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.

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Opening OpenDental.sln errors

Post by cmcgehee » Thu Jul 19, 2018 2:30 pm

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.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
jsalmon
Posts: 1551
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Opening OpenDental.sln errors

Post by jsalmon » Thu Jul 19, 2018 2:52 pm

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.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

sjWiz
Posts: 19
Joined: Tue Jul 10, 2018 1:25 pm

Re: Opening OpenDental.sln errors

Post by sjWiz » Thu Jul 19, 2018 5:05 pm

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?

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Opening OpenDental.sln errors

Post by cmcgehee » Thu Jul 19, 2018 5:26 pm

I would set it to its default path.
Chris McGehee
Open Dental Software
http://www.opendental.com

Post Reply