After reinstalin/upgrading my OpenPDC, the console returns web hosting error

Hello guys. Again I need your help.
I recently face with a problem in my windows with OpenPDC. The process did not start correctly and causes a KERNELBASE.DLL related problem.

As suggested here, I reinstalled the OpenPDC application and the that problem got fixed. But now, after confirming that the phasors flow was arriving and the ppa historical ARCHIVES were being generated I realize that my subscriber GPA “flow” wasnt working anymore.

Looking the PDC console I get a lot of one problem with the following text:

Failed to initialize web hosting: Could no lead file or assembly 'Newtonsoft.json, Version=12.0.0.0.0, Culture=neutral,......'  The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I made some files backup before the instalation upgrade (openPDC.dv, openPDC.exe.Config and openPDCManager.exe.Config).

Did I make something wrong?

Hello Maique_Correa_Garcia,

openPDC.exe.config has a collection of assembly bindings that specify a target version for various dlls that the system may need to load at runtime. The error message suggests that the binding’s target version doesn’t match the version of the Newtonsoft.Json.dll file itself so it cannot load the target version. You should be able to modify the assembly binding to fix this issue.

My recommendation would be to open a command prompt, then navigate to the openPDC installation folder and run ValidateAssemblyBindings.exe openPDC.exe.config. That should scan the assemblies in the folder and update the target version of each assembly binding in the openPDC.exe.config file based on the version of the assembly that is actually installed. After running it, you should restart openPDC.

Thanks,
Stephen

Hello dear Stephen.

Thank you a lot for your explanation. It looks like solved to me. My console only returns status messages now.

Thank you!!!