Page 1 of 1

OD16.2.26 error: Field not found: 'OpenDentBusiness.Remoting

Posted: Wed Jul 06, 2016 1:58 am
by mopensoft
I just got this error
Field not found: 'OpenDentBusiness.RemotingClient.RemotingRole'.
when running the code below:

Code: Select all

if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
                {
                    return Meth.GetObject<List<Patient>>(System.Reflection.MethodBase.GetCurrentMethod(), dateFrom, dateTo);
                }
                string command = "SELECT * from patient "
                    + "WHERE PatStatus=0";

                return OpenDentBusiness.Crud.PatientCrud.SelectMany(command);
It was working with earlier version than 16.2.26. Since I'm not using RemoteRole, if I remove the if clause, it works fine but I'm wondering what went wrong here and how we support to fix it rather than remove the remote checking code?

Thanks
M

Re: OD16.2.26 error: Field not found: 'OpenDentBusiness.Remo

Posted: Thu Jul 07, 2016 3:55 pm
by tgriswold
Did your clean and re-adding the reference fix for your other post fix this issue too or are you still getting it?

Re: OD16.2.26 error: Field not found: 'OpenDentBusiness.Remo

Posted: Mon Jul 11, 2016 6:33 am
by mopensoft
Yes, it also fixed this error too.