none
C:\Users\Juan : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified

    Question

  • Hi,

    I downloaded and installed VS 2017 15.5.0 preview 5 and when attempting to build an MFC project in VS 2017 15.4.5, I get:

    1>LINK : fatal error LNK1327: failure during running mt.exe
    1>C:\Users\Juan : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.

    My user directory is: C:\Users\Juan Dent, so it seems problematic to see only C:\Users\Juan.

    I believe the installation of the preview Visual Studio brought this problem but have no idea how to fix it or what the error means.

    This error occurs only when compiling MFC projects!!

    Should I repair the installation of VS 2017 15.4.5?

    Can someone help?

    Regards,

    Juan Dent


    Juan Dent

    Saturday, December 02, 2017 10:51 PM

All replies

  • I created an MFC project from the preview version of VS 2017 (15.5.0 preview 5) and got the same error upon compiling:

    1>C:\Users\Juan : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
    1>
    1>LINK : fatal error LNK1327: failure during running mt.exe

    What is going on?

    Regards,

    Juan Dent


    Juan Dent

    Saturday, December 02, 2017 11:08 PM
  • Hi Juan,

    Thank you for posting in MSDN forum.

    >>Should I repair the installation of VS 2017 15.4.5?

    Of course you could try with repairing the whole VS, at the same time, please modify to check if you have installed the following C++ MFC related components well:

     Besides, I did a research about this error, please see /MANIFEST (Create Side-by-Side Assembly Manifest)  and another similar issue: Fatal error cannot run 'mt.exe' at compiling VS 2012 C++ project :

    To set this linker option in the Visual Studio development environment

    1. Open the project's Property Pages dialog box. For details, see Working with Project Properties

    2. Expand the Configuration Properties node. 

    3. Expand the Linker node. 

    4. Select the Manifest File property page. 

    5. Modify the Generate Manifest property as No in Linker.

    If any problem persists after trying above, please feel free to contact us, we will continue to help you troubleshoot.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Monday, December 04, 2017 9:13 AM
    Moderator
  • I repaired VS 2017 15.4.5 to no avail. I still cannot get the MFC apps to compile without the error line. And the workaround of setting Generate Manifest to NO in the Linker works but seems to me one should not have to disable manifest generation. In "report a bug" Send Feedback button, I found this issue marked as NOT A BUG. And the solution was "move the project to where the path does not contain a space" seems awful since my user name is "Juan Dent" so all my Documents, etc. directories contain a space!

    And I have many projects within "C:\Users\Juan Dent"...

    What is this manifest generation anyway? Why do we need it? Why can't the linker properly read paths with spaces in them and not consider this a bug??

    Regards,

    Juan


    Juan Dent

    Monday, December 04, 2017 8:43 PM
  • Hi Juan,

    Thank you for your update.

    Usually, when running command, the space is identified as a statement terminator.
    Please try with renaming your file folder name, remove all the space, then re-create and build the project.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, December 05, 2017 6:25 AM
    Moderator
  • How can I change the folder associated with my user name so that instead of having:

    c:\Users\Juan Dent

    I could have:

    c:\Users\JuanDent

    And this has implications so can you give me a bulleted list of actions to perform this change that will not break my installed applications? I suppose there already is a document that specifies exactly how to change the associated folder to a user's name and what the consequences of doing this are. Please point me to it...

    This problem started when I updated my Windows 10 Pro just a few days ago - by recommendation from Windows! Or maybe it was the update to VS 2017 15.5.0 (??)

    It broke everything!!

    My current version of OS is 

    Microsoft Windows 10 Pro

    Version 10.0.16299 Build 16299

    Please help!


    Juan Dent


    • Edited by Juan Dent Tuesday, December 05, 2017 2:26 PM to clarify more
    Tuesday, December 05, 2017 2:17 PM
  • Hi Juan,

    Thank you for your update, and I'm sorry that I didn't help you solve this issue immediately.

    >>And this has implications so can you give me a bulleted list of actions to perform this change that will not break my installed applications? 

    The file name is associated with the system, you could try to login with your Windows system account to modify it. Or you could have a try with change the project to another directory.

    >>This problem started when I updated my Windows 10 Pro just a few days ago - by recommendation from Windows! Or maybe it was the update to VS 2017 15.5.0 (??)

    Your insight does make sense. to determine if it is related to the Windows update, please try to remove the newest KB during the update, then run VS in Safemode to check if the problem still persists.

    Any problem persists please feel free to contact us., I will still try to help you research and analyze.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, December 06, 2017 10:20 AM
    Moderator
  • What do you mean by KB in:

    please try to remove the newest KB during the update, then run VS in Safemode to check if the problem still persists.

    and how does one run VS in Safemode?

    Also, how do I change the directory associated with my user account (I am the sole user and administrator in this machine)??

    Thanks,

    Juan Dent


    Juan Dent

    Wednesday, December 06, 2017 6:13 PM
  • Hi Juan,

    Please see the original error:

    1>C:\Users\Juan : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.

    >> I have many projects within "C:\Users\Juan Dent

    The character of Dent doesn't be identified completely, it is the real cause of this issue.

    The solution is to rename your account to some other name, log out and log back in

    Then create a new user account with your correct name, log out and log into the new account, transfer your files to your new account and delete the old (wrongly named) account.

    >>how do I change the directory associated with my user account (I am the sole user and administrator in this machine)??

    Please see the detailed steps in How to rename the User folder in Windows 10? , hope this is helpful to you.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 07, 2017 7:36 AM
    Moderator
  • On how to rename the User folder, there is someone who tried this following the steps there presented and had this to say:

     I just had to do this myself, and all my Windows settings, many app settings and some apps that are installed "just for me" on installation are lost

    That does not look like a good way to go - since I don't want to loose my Windows Settings and app settings and apps installed just for me.

    Do you know another way that preserves these data and configuration?

    Regards,

    Juan 


    Juan Dent

    Thursday, December 07, 2017 11:57 PM
  • Hi Juan,

    From your description,  this is indeed inconvenient to rename the folder.

    Please see shimmy's reply in How to rename the User folder in Windows 10?

    You could make a backup of the prior registry to keep your data and configuration.

    By the way, could you please try to change a location to save your application? create a new file name without space, it would narrow down the error in original post.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, December 08, 2017 10:03 AM
    Moderator