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

**URL:** <http://discussions.gridprotectionalliance.org/t/after-reinstalin-upgrading-my-openpdc-the-console-returns-web-hosting-error/1313>\
**Category:** openPDC\
**Created:** [September 25, 2024, 1:34am UTC](http://discussions.gridprotectionalliance.org/t/after-reinstalin-upgrading-my-openpdc-the-console-returns-web-hosting-error/1313 "2024-09-25T01:34:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maique\_Correa\_Garcia](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/maique_correa_garcia/32/1295_2.png) [@Maique\_Correa\_Garcia](http://discussions.gridprotectionalliance.org/u/Maique_Correa_Garcia)\
**Post date:** [September 25, 2024, 1:34am UTC](http://discussions.gridprotectionalliance.org/t/after-reinstalin-upgrading-my-openpdc-the-console-returns-web-hosting-error/1313/1 "2024-09-25T01:34:31Z")

</div>

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:

```auto
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)

```

 ![WhatsApp Image 2024-09-24 at 22.15.59](http://discussions.gridprotectionalliance.org/uploads/default/original/2X/b/bf1d52ab6fcc2433d918db6cf2f2a4e47d7fda82.jpeg)

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

Did I make something wrong?

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [September 25, 2024, 1:04pm UTC](http://discussions.gridprotectionalliance.org/t/after-reinstalin-upgrading-my-openpdc-the-console-returns-web-hosting-error/1313/2 "2024-09-25T13:04:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Maique\_Correa\_Garcia](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/maique_correa_garcia/32/1295_2.png) [@Maique\_Correa\_Garcia](http://discussions.gridprotectionalliance.org/u/Maique_Correa_Garcia)\
**Post date:** [September 27, 2024, 2:28am UTC](http://discussions.gridprotectionalliance.org/t/after-reinstalin-upgrading-my-openpdc-the-console-returns-web-hosting-error/1313/3 "2024-09-27T02:28:28Z")

</div>

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