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
Tuesday, April 29, 2014 10:43 PM
I just added a web form to a new Visual Studio project. When I try to run a Build in Visual Studio, an error says that the .NETFramework,Version=v4.0.AssemblyAttributes.cs cannot be found. I verified that it exists though. The error is as follows:
Source file 'C:\Users\xxxxx\AppData\Local\Temp\NETFramework,Version=v4.0..NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found
I read this is this is likely a permissions issue, but it's not apparent what account requires full permission, to which folders, and how these permissions should be set. When I look at the properties of each of the folders in the path above, it appears that I have full permission to all. Should some other account be provided with full permissions?
Thanks.
All replies (6)
Thursday, May 1, 2014 1:49 AM âś…Answered
Hi,
I suggest granting all permissions including Modify/Read&execute/Read/Write/Full Control to your current account in Properties->Security on the AppData\Local\Temp folder.
Thanks,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Wednesday, April 30, 2014 8:45 AM
Hi,
Welcome to MSDN forum.
The error said that the source file 'C:\Users\xxxxx\AppData\Local\Temp\NETFramework,Version=v4.0..NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found. Please navigate to that path: C:\Users\XXX\AppData\Local\Temp and check whether the AssemblyAtttribute.cs file exists.
If the file does not exist, I doubt that there is anything wrong with your VS. Please repair or reinstall it.
If it really exists, please run VS as admin and build the project to check the result.
If no help, whether there is anything wrong with the VS project? Which type of project is your VS project? In order to confirm it, please create a new and simple ASP.NET web app again and add a web form into the new project, build the project.
If the build can succeed, I doubt that the previous VS project was corrupted.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Thursday, May 1, 2014 1:04 AM
The same error occurs whether a new Web Form project or an ASP.NET Web App project is created. The error is
Source file 'C:\Users\xxxxx\AppData\Local\Temp\NETFramework,Version=v4.0..NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found
The AssemblyAttributes.cs file does exist. What is necessary to provide the building account with full permissions to access this file in the temp directory? What name does the building account go by?
Thanks.
Tuesday, July 5, 2016 10:19 AM
Hello Amanda Zhu,
The error said that the source file 'C:\Users\xxxxx\AppData\Local\Temp\NETFramework,Version=v4.0..NETFramework,Version=v4.0.AssemblyAttributes.cs' could not be found. Please navigate to that path: C:\Users\XXX\AppData\Local\Temp and check whether the AssemblyAtttribute.cs file exists.
If the file does not exist, I doubt that there is anything wrong with your VS. Please repair or reinstall it.
Your advice is misleading, repair/reinstall are useless. The file is in the temp folder, the build should still work after deleting it and it does because the file is recreated on build. It could be more helpful to delete the file, as it may not be accessible due to it's state.
Regards
- Florian
Wednesday, June 13, 2018 11:21 AM
I my case the error displayed the following path
C:\Users\XXXX\AppData\Local\Temp\25\NETFramework,Version=v4.5.2.AssemblyAttributes.cs.
I went till the Local folder and found no other folder were present.
As a solution i manually created folder TEMP and folder 25 under it.
Rebuild my solution and it worked.
Thanks
Abhi.
Friday, January 4, 2019 6:06 AM | 1 vote
Hi all,
I just encountered this error today...
And what I did is,
1. Manually delete all the files possible in AppData\Local\Temp
2. Rebuild the solution in Visual Studio 2019
Then the issue was resolved.
Cheers
Scott