Share via


Visual Studio debug error message - Could not find the file .NETFramework,Version=v4.6.1.AssemblyAttributes.cs

Question

Tuesday, June 5, 2018 10:21 AM

Hi. When I leave my programs running in Debug mode, after extended amount of time Visual Studio would suddenly display (in the Output tab):

[Failure] Could not find file 'C:\Users\user\AppData\Local\Temp\NETFramework,Version=v4.6.1.AssemblyAttributes.cs'.
[Failure] Could not find file 'C:\Users\user\AppData\Local\Temp\NETFramework,Version=v4.6.AssemblyAttributes.cs'.

Consoles messages from my programs (Debug.WriteLine) would not appear in the Output tab anymore and I need to restart all instances of VS which are in debug mode.

I am not sure how long VS needs to be in debug mode to trigger this problem.

How do I fix this issue please?

All replies (2)

Friday, June 8, 2018 6:14 AM

Hi,

Welcome to MSND forum.

Can you reproduce the problem with the other program?

If you run your VS as the admin, how about the result?

According to the error message, It seems you have problem writing to the temp directory, please grant permissions read/write/execute to the temp folder.

Best regards,

Joyce

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].


Friday, June 8, 2018 9:29 PM

Hi Joyce,

Thank you for the suggestion.

I have updated VS to the latest version since the last post. Currently I am letting my debugging session to run and have yet to reproduce the problem so far.

Will post again if the problem resurfaces.

Thank you very much.