[Tex/LaTex] pdflatex claims it is missing MiKTeX209-core.dll

miktexpdftex

I am using Win8.1 with all updates and Winedt 9 and when compiling using the Winedt console, I get the following message:impossible to start the program because MiKTeX209-core.dll is missing. Please reinstall the programm to correct this error.
However, when I start pdflatex from the dos prompt the tex file is compiled.
I add that LuaLaTeX from winedt console works correctly.
MiKTeX is updated with the latest updates both in admin and user modes. Winedt is also in its latest version.
The MWE:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{slantsc}
\setcounter{secnumdepth}{0}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage{tgschola}
\begin{document}
  \centerline{\textsc{\large
Please look into the source; if needed, modify it and recompile\rlap.}}
\section{Section}
A section starts here.
\section{A second section}
\section{A third section}
 Section!!
\end{document} 

Any help would be appreciated.

Best Answer

There has been apparently an unapproved or experimental MiKTeX2.9 x64 for Windows available which somehow was downloaded on my machine as the update required for MiKTeX approximately around the 3rd of October 2015. This experimental update includes several files among which several are of the form MiKTeX209-next-*.dll. This experimental update is not good and breaks the pdflatex engine (among others). The best remedy is to uninstall completely the MiKTeX installation using the MiKTeX uninstall program in Control Panel.

Related Question