While Build the project or when I publish it I get the following error :
Error 1 Could not load file or assembly 'App_Web_ghcqq5pc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
But if I try for 1-2 more times it goes off and project get build successfully. Can anyone sort this.?
Here are some good suggestions that might help, please try on your side.
Clean and Rebuild - Cleaning and rebuilding your current Project (Right-click > Clean, Right-click Rebuild respective) and see if that makes any difference at all.
Closing Older IIS Instances - Stop your existing application and ensure that you don't have any additional IIS processes or instances of your local Web Server running.
Consider Restarting Visual Studio - If these issues are still persisting after the above steps, try restarting Visual Studio (and even your local machine)
Proper Project Targeting - If you are dealing with multiple Projects, ensure that the Project that you have a breakpoint in is actually running (Right-click your Solution > Set Startup Projects... > Ensure your current Project is selected).
First you could try the hints above, at the same time it's also recommended to create a simple app in your Visual Studio, and check whether it works fine in it. Or you could consider repairing your VS.
If you still have same issue, please let me know.
Best regards
Angie
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
45 Points
427 Posts
The process cannot access
Jan 07, 2014 12:26 AM|ravininave|LINK
While Build the project or when I publish it I get the following error :
Error 1 Could not load file or assembly 'App_Web_ghcqq5pc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
But if I try for 1-2 more times it goes off and project get build successfully. Can anyone sort this.?
Member
560 Points
119 Posts
Re: The process cannot access
Jan 07, 2014 01:23 AM|Sanjay.Baroda|LINK
Refer following post if not already : http://stackoverflow.com/questions/784157/asp-net-corrupt-assembly-could-not-load-file-or-assembly-app-web
Regards
Sanjay
All-Star
32817 Points
3815 Posts
Re: The process cannot access
Jan 07, 2014 08:50 PM|Angie xu - MSFT|LINK
Hi ravininave
Here are some good suggestions that might help, please try on your side.
First you could try the hints above, at the same time it's also recommended to create a simple app in your Visual Studio, and check whether it works fine in it. Or you could consider repairing your VS.
If you still have same issue, please let me know.
Best regards
Angie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.