Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Saturday, December 2, 2017 10:51 PM
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
All replies (14)
Saturday, December 2, 2017 11:08 PM | 2 votes
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
Monday, December 4, 2017 9:13 AM | 1 vote
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
Open the project's Property Pages dialog box. For details, see Working with Project Properties.
Expand the Configuration Properties node.
Expand the Linker node.
Select the Manifest File property page.
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 [email protected].
Monday, December 4, 2017 8:43 PM | 1 vote
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
Tuesday, December 5, 2017 6:25 AM
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 [email protected].
Tuesday, December 5, 2017 2:17 PM | 2 votes
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
Wednesday, December 6, 2017 10:20 AM
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 [email protected].
Wednesday, December 6, 2017 6:13 PM | 1 vote
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
Thursday, December 7, 2017 7:36 AM
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 [email protected].
Thursday, December 7, 2017 11:57 PM
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
Friday, December 8, 2017 10:03 AM
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 [email protected].
Sunday, January 6, 2019 4:49 PM
What a terrible stream of (non-)answers.
Windows has supported spaces in paths ever since version 95. If VS can't handle this then VS is at fault, not Windows, and not the user for having a space in their account name.
Juan is completely in the right on this and that is indisputable. This is 100% a bug with Visual Studio. This problem needs to be recognised and repaired.
Thanks, Adam Reece.
Tuesday, February 26, 2019 12:54 PM | 1 vote
High Resolution Date & Time: 2019/2/26 20:42:16.7233802
Event Class: Process
Operation: Process Create
Result: SUCCESS
Path: C:\Program Files (x86)\Windows Kits\8.1\bin\x86\mt.exe
TID: 2452
Duration: 0.0000000
PID: 15000
Command line: mt /nologo /out:"C:\Users\Bruce Ma\AppData\Local\Temp\lnk{D28EBD32-2FD1-4861-8120-DD9E4532063B}.tmp" /manifest "..\ProjectSettings/compat.manifest" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\Include\Manifest\dpiaware.manifest" C:\Users\Bruce Ma\AppData\Local\Temp\lnk{450B1A10-93E1-46DA-BC96-8616D581DC5D}.tmp
the last param should "C:\Users\Bruce Ma\AppData\Local\Temp\lnk{450B1A10-93E1-46DA-BC96-8616D581DC5D}.tmp"
I think this is a bug in vs 2017 recent linker.
work around
MKLINK /J old_user_name new_user_nameset userprofile env for user in system.
Thursday, February 28, 2019 12:06 PM | 3 votes
After updating everything to the latest version (win pro 1809, win sdk 10.0.17763.0, vs 2017 latest version), I have a same LNK1327 issue of "mt.exe" while compiling. There is a space character in the middle of my windows user name, too. I think it is definitely a bug in vs2017 or win10.
Friday, June 14, 2019 2:01 PM
The same thing happened to me, everything worked before the update!
To solve I rename my user in windows, out that the windows update went into the loop, and it took hours to do.