.NET/VB.NET: solving the error “The system cannot find the file specified.” “\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.vb”
Posted by jpluimers on 2013/08/22
Bumped into this error a while ago in Visual Studio 2010:
Kind | Error |
Number | 80 |
Description | Unable to open module file ‘C:\Users\username\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.vb’: The system cannot find the file specified. |
File | C:\Users\username\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.vb |
Line | 1 |
Column | 1 |
Project | VbPowerPack |
(I replaced the column separators by line separators to make it more readable)
The code was using the VBPowerPack download I wrote about before, but that appeared to be irrelevant.
This is how I solved it:
- Build -> Clean Solution
- Build -> Rebuild Solution
- File -> Close Solution
- View -> Start Page
- Open most recent solution from the Start Page
I’m not the only one that has this problem every now and then.
Thanks to these posts that helped me out with the above solution:
- “Unable to open module file” when an existing solution is loaded | Microsoft Connect.
- VB 2010 Client.AssemblyAttributes.vb file missing | Microsoft Connect.
–jeroen
caerwyn said
Nice one… I’d tried clean and rebuild, but open from start page was beyond my guesses.
thank you.
BillOertell said
This worked for me, too, but it begs the question, “Why is Visual Studio using a Temp directory to store stuff in, and can you change it?”
jpluimers said
For some things, I stopped wondering (:
Nibedita said
Thanks …its worked for me.