[Tex/LaTex] MiKTeX won’t typeset

miktex

I have just bought a new computer and downloaded MiKTeX onto it. When I try to typeset some of my old TeXworks files I get:

"Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/Stephen/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log

You may want to visit the MiKTeX project page (http://miktex.org), if you
need help.

Sorry, but C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\texify.exe did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/Stephen/AppData/Local/MiKTeX/2.9/miktex/log/texify.log

You may want to visit the MiKTeX project page (http://miktex.org), if you
need help."

The log file tells me:

2015-09-02 14:56:13,339+0100 INFO  texify - running 'initexmf --quiet --update-fndb' to refresh the file name database
2015-09-02 14:56:13,537+0100 FATAL texify - The operation failed for some reason.
2015-09-02 14:56:13,538+0100 FATAL texify - Info: C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\initexmf.exe
2015-09-02 14:56:13,538+0100 FATAL texify - Source: Libraries\MiKTeX\Core\Process.cpp
2015-09-02 14:56:13,538+0100 FATAL texify - Line: 290

When trying to download new packages or open MiKTeX update (Admin) I get an error saying:

MiKTeX Problem Report Message: Windows API error 87: The parameter is incorrect.

Please could someone help me?

Stephen

-edit- Problem solved, see below

Best Answer

My problems were solved when I followed this comment by Ulrike Fischer:

Open the package manager (admin), use repositories -> synchronize, and then check if all packages starting with miktex are installed

After I installed the miktex files, it compiled perfectly.